Three dimensional vector (template). More...
#include <fbtypes.h>

Public Member Functions | |
| FBVector3 () | |
| Constructor. More... | |
| FBVector3 (const FBVector3 &pVector) | |
| Copy Constructor. More... | |
| FBVector3 (tType *pValue) | |
| Constructor from array. More... | |
| FBVector3 (tType p1, tType p2, tType p3=0) | |
| 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 FBVector3 & | operator= (const FBVector3 &pVector) |
| Overloaded equal operator. More... | |
| bool | operator!= (const FBVector3 &pVector) |
| not equal operator. More... | |
| bool | operator== (const FBVector3 &pVector) |
| equal operator. More... | |
Public Attributes | |
| tType | mValue [3] |
| Values. More... | |
Three dimensional vector (template).
| 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 | ( | ) |
Initialization function.
Clear vector.
| operator tType * | ( | ) | const |
Overloaded cast to array.
| bool operator!= | ( | const FBVector3< tType > & | pVector | ) |
not equal operator.
| pVector | Vector to compare. |
Overloaded equal operator.
| pVector | Vector to copy. |
| bool operator== | ( | const FBVector3< 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. |