FBSVector Class Reference
 
 
 
FBSVector Class Reference

This reference page is linked to from the following overview topics: Solving from the Goal to the Skeleton.


#include <fbtypes.h>


Class Description

Three dimensional scaling vector.

Definition at line 565 of file fbtypes.h.

Inheritance diagram for FBSVector:
FBVector3< double >

Public Member Functions

  FBSVector ()
  Constructor.
  FBSVector (double *pValue)
  Constructor from array.
  FBSVector (double p1, double p2, double p3=1.0)
  Constructor.
void  Init ()
  Init Initialization function.
double &  operator[] (int pIndex)
  Overloaded [] operator.
void  Set (double *pValue)
  Set vector from an array.
  operator double * () const
  Overloaded cast to array.
bool  operator!= (const FBVector3 &pVector)
  not equal operator.
bool  operator== (const FBVector3 &pVector)
  equal operator.

Public Attributes

double  mValue [3]
  Values.

Constructor & Destructor Documentation

FBSVector::FBSVector ( )

Constructor.

FBSVector::FBSVector ( double *  pValue )

Constructor from array.

Parameters:
pValue Array to take values from.
FBSVector::FBSVector ( double  p1,
double  p2,
double  p3 = 1.0 
)

Constructor.

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

Member Function Documentation

void FBSVector::Init ( )

Init Initialization function.

Clear vector.

Reimplemented from FBVector3< double >.

double & FBVector3< double >::operator[] ( int  pIndex ) [inherited]

Overloaded [] operator.

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

Reimplemented in FBColor.

void FBVector3< double >::Set ( double *  pValue ) [inherited]

Set vector from an array.

Parameters:
pValue Array to copy value from.
FBVector3< double >::operator double * ( ) const [inherited]

Overloaded cast to array.

Returns:
Array of items of tType.

Reimplemented in FBColor.

bool FBVector3< double >::operator!= ( const FBVector3< double > &  pVector ) [inherited]

not equal operator.

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

equal operator.

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

Member Data Documentation

double FBVector3< double >::mValue[3] [inherited]

Values.

Definition at line 158 of file fbtypes.h.


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