Public Member Functions | Public Attributes

FBVector4< tType > Class Template Reference

Search for all occurrences

Detailed Description

template<class tType>
class FBVector4< tType >

Four dimensional vector (template).

Definition at line 221 of file fbtypes.h.

#include <fbtypes.h>

List of all members.

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 FBVector4operator= (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.

Constructor & Destructor Documentation

FBVector4 ( )

Constructor.

FBVector4 ( const FBVector4< tType > &  pVector)

Copy Constructor.

FBVector4 ( tType *  pValue)

Constructor from array.

Parameters:
pValueArray to take values from.
FBVector4 ( tType  p1,
tType  p2,
tType  p3,
tType  p4 = 1 
)

Constructor.

Parameters:
p1First element
p2Second element.
p3Third element.
p4Fourth element.

Member Function Documentation

void Init ( )

Initialization function.

Clear vector.

tType& operator[] ( int  pIndex)

Overloaded [] operator.

Parameters:
pIndexElement to access.
Returns:
Element at pIndex.

Reimplemented in FBColorAndAlpha.

void Set ( tType *  pValue)

Set vector from an array.

Parameters:
pValueArray to copy value from.
operator tType * ( ) const

Overloaded cast to array.

Returns:
Array of items of tType.

Reimplemented in FBColorAndAlpha.

const FBVector4& operator= ( const FBVector4< tType > &  pVector)

Overloaded equal operator.

Parameters:
pVectorVector to copy.
Returns:
this vector as a const.
bool operator!= ( const FBVector4< tType > &  pVector)

not equal operator.

Parameters:
pVectorVector to compare.
Returns:
true if not equal.
bool operator== ( const FBVector4< tType > &  pVector)

equal operator.

Parameters:
pVectorVector to compare.
Returns:
true if equal.

Member Data Documentation

tType mValue[4]

Values.

Definition at line 226 of file fbtypes.h.


The documentation for this class was generated from the following file: