Two dimensional vector (template). More...
#include <fbtypes.h>
Public Member Functions | |
| FBVector2 () | |
| Constructor. | |
| FBVector2 (const FBVector2 &pVector) | |
| Copy Constructor. | |
| FBVector2 (tType *pValue) | |
| Constructor from array. | |
| FBVector2 (tType p1, tType p2) | |
| 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 FBVector2 & | operator= (const FBVector2 &pVector) |
| Overloaded equal operator. | |
| bool | operator!= (const FBVector2 &pVector) |
| not equal operator. | |
| bool | operator== (const FBVector2 &pVector) |
| equal operator. | |
Public Attributes | |
| tType | mValue [2] |
| Values. | |
Two dimensional vector (template).
| FBVector2 | ( | ) |
Constructor.
| FBVector2 | ( | tType * | pValue | ) |
Constructor from array.
| pValue | Array to take values from. |
| FBVector2 | ( | tType | p1, |
| tType | p2 | ||
| ) |
Constructor.
| p1 | First element |
| p2 | Second element. |
| void Init | ( | ) |
Initialization function.
Clear vector.
| operator tType * | ( | ) | const |
Overloaded cast to array.
| bool operator!= | ( | const FBVector2< tType > & | pVector | ) |
not equal operator.
| pVector | Vector to compare. |
Overloaded equal operator.
| pVector | Vector to copy. |
| bool operator== | ( | const FBVector2< 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. |