Four dimensional vector (template).
#include <fbtypes.h>
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. |
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 | ( | ) |
tType& operator[] | ( | int | pIndex | ) |
Overloaded [] operator.
pIndex | Element to access. |
Reimplemented in FBColorAndAlpha.
void Set | ( | tType * | pValue | ) |
operator tType * | ( | ) | const |
Overloaded equal operator.
pVector | Vector to copy. |
bool operator!= | ( | const FBVector4< tType > & | pVector | ) |
not equal operator.
pVector | Vector to compare. |
bool operator== | ( | const FBVector4< tType > & | pVector | ) |
equal operator.
pVector | Vector to compare. |
tType mValue[4] |