Four dimensional vector (template).
More...
#include <fbtypes.h>
template<class tType>
class FBVector4< tType >
Four dimensional vector (template).
Definition at line 221 of file fbtypes.h.
◆ FBVector4() [1/4]
◆ FBVector4() [2/4]
◆ FBVector4() [3/4]
Constructor from array.
- Parameters
-
pValue | Array to take values from. |
◆ FBVector4() [4/4]
FBVector4 |
( |
tType |
p1, |
|
|
tType |
p2, |
|
|
tType |
p3, |
|
|
tType |
p4 = 1 |
|
) |
| |
Constructor.
- Parameters
-
p1 | First element |
p2 | Second element. |
p3 | Third element. |
p4 | Fourth element. |
◆ Init()
Initialization function.
Clear vector.
◆ operator tType *()
operator tType * |
( |
| ) |
const |
Overloaded cast to array.
- Returns
- Array of items of tType.
◆ operator!=()
bool operator!= |
( |
const FBVector4< tType > & |
pVector | ) |
|
not equal operator.
- Parameters
-
pVector | Vector to compare. |
- Returns
- true if not equal.
◆ operator=()
Overloaded equal operator.
- Parameters
-
- Returns
- this vector as a const.
◆ operator==()
bool operator== |
( |
const FBVector4< tType > & |
pVector | ) |
|
equal operator.
- Parameters
-
pVector | Vector to compare. |
- Returns
- true if equal.
◆ operator[]()
tType& operator[] |
( |
int |
pIndex | ) |
|
Overloaded [] operator.
- Parameters
-
- Returns
- Element at pIndex.
◆ Set()
void Set |
( |
tType * |
pValue | ) |
|
Set vector from an array.
- Parameters
-
pValue | Array to copy value from. |
◆ mValue
The documentation for this class was generated from the following file: