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