Public Member Functions | Public Attributes

FBVector3< tType > Class Template Reference

Search for all occurrences

Detailed Description

template<class tType>
class FBVector3< tType >

Three dimensional vector (template).

Definition at line 154 of file fbtypes.h.

#include <fbtypes.h>

List of all members.

Public Member Functions

  FBVector3 ()
  Constructor.
  FBVector3 (const FBVector3 &pVector)
  Copy Constructor.
  FBVector3 (tType *pValue)
  Constructor from array.
  FBVector3 (tType p1, tType p2, tType p3=0)
  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 FBVector3 operator= (const FBVector3 &pVector)
  Overloaded equal operator.
bool  operator!= (const FBVector3 &pVector)
  not equal operator.
bool  operator== (const FBVector3 &pVector)
  equal operator.

Public Attributes

tType  mValue [3]
  Values.

Constructor & Destructor Documentation

FBVector3 ( )

Constructor.

FBVector3 ( const FBVector3< tType > &  pVector )

Copy Constructor.

FBVector3 ( tType *  pValue )

Constructor from array.

Parameters:
pValue Array to take values from.
FBVector3 ( tType  p1,
tType  p2,
tType  p3 = 0 
)

Constructor.

Parameters:
p1 First element
p2 Second element.
p3 Third element(default=0).

Member Function Documentation

void Init ( )

Initialization function.

Clear vector.

Reimplemented in FBSVector.

tType& operator[] ( int  pIndex )

Overloaded [] operator.

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

Reimplemented in FBColor.

void Set ( tType *  pValue )

Set vector from an array.

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

Overloaded cast to array.

Returns:
Array of items of tType.

Reimplemented in FBColor.

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

Overloaded equal operator.

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

not equal operator.

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

equal operator.

Parameters:
pVector Vector to compare.
Returns:
true if equal.

Member Data Documentation

tType mValue[3]

Values.

Definition at line 158 of file fbtypes.h.


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