Three dimensional vector (template).
#include <fbtypes.h>
Public Member Functions |
|
FBVector3 () | |
Constructor. |
|
FBVector3 (const FBVector3 &pVector) | |
Copy Constructor. |
|
FBVector3 (tType *pValue) | |
Constructor from array. |
|
FBVector3 (tType p1, tType p2, tType p3=0) | |
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 FBVector3 & | operator= (const FBVector3 &pVector) |
Overloaded equal operator. |
|
bool | operator!= (const FBVector3 &pVector) |
not equal operator. |
|
bool | operator== (const FBVector3 &pVector) |
equal operator. |
|
Public Attributes |
|
tType | mValue [3] |
Values. |
FBVector3 | ( | ) |
Constructor.
FBVector3 | ( | tType * | pValue | ) |
Constructor from array.
pValue | Array to take values from. |
FBVector3 | ( | tType | p1, |
tType | p2, | ||
tType | p3 = 0 |
||
) |
Constructor.
p1 | First element |
p2 | Second element. |
p3 | Third element(default=0). |
void Init | ( | ) |
tType& operator[] | ( | int | pIndex | ) |
Overloaded [] operator.
pIndex | Element to access. |
Reimplemented in FBColor.
void Set | ( | tType * | pValue | ) |
operator tType * | ( | ) | const |
Overloaded equal operator.
pVector | Vector to copy. |
bool operator!= | ( | const FBVector3< tType > & | pVector | ) |
not equal operator.
pVector | Vector to compare. |
bool operator== | ( | const FBVector3< tType > & | pVector | ) |
equal operator.
pVector | Vector to compare. |
tType mValue[3] |