Two dimensional vector (template).
#include <fbtypes.h>
Public Member Functions |
|
FBVector2 () | |
Constructor. |
|
FBVector2 (const FBVector2 &pVector) | |
Copy Constructor. |
|
FBVector2 (tType *pValue) | |
Constructor from array. |
|
FBVector2 (tType p1, tType p2) | |
Constructor. |
|
void | Init () |
Initialization function. |
|
tType & | operator[] (int pIndex) |
Overloaded [] operator. |
|
void | Set (tType *pValue) |
Set vector from an array. |
|
operator tType * () const | |
Overloaded cast to array. |
|
const FBVector2 & | operator= (const FBVector2 &pVector) |
Overloaded equal operator. |
|
bool | operator!= (const FBVector2 &pVector) |
not equal operator. |
|
bool | operator== (const FBVector2 &pVector) |
equal operator. |
|
Public Attributes |
|
tType | mValue [2] |
Values. |
FBVector2 | ( | ) |
Constructor.
FBVector2 | ( | tType * | pValue | ) |
Constructor from array.
pValue | Array to take values from. |
FBVector2 | ( | tType | p1, |
tType | p2 | ||
) |
Constructor.
p1 | First element |
p2 | Second element. |
void Init | ( | ) |
tType& operator[] | ( | int | pIndex | ) |
Overloaded [] operator.
pIndex | Element to access. |
void Set | ( | tType * | pValue | ) |
operator tType * | ( | ) | const |
Overloaded cast to array.
Overloaded equal operator.
pVector | Vector to copy. |
bool operator!= | ( | const FBVector2< tType > & | pVector | ) |
not equal operator.
pVector | Vector to compare. |
bool operator== | ( | const FBVector2< tType > & | pVector | ) |
equal operator.
pVector | Vector to compare. |
tType mValue[2] |