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