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