VECTOR3D Class Reference

#include <VECTOR3D.h>

List of all members.

Public Member Functions

 VECTOR3D (void)
 VECTOR3D (float newX, float newY, float newZ)
 VECTOR3D (const float *rhs)
 VECTOR3D (const VECTOR3D &rhs)
 ~VECTOR3D ()
void Set (float newX, float newY, float newZ)
void SetX (float newX)
void SetY (float newY)
void SetZ (float newZ)
float GetX () const
float GetY () const
float GetZ () const
void LoadZero (void)
void LoadOne (void)
VECTOR3D CrossProduct (const VECTOR3D &rhs) const
float DotProduct (const VECTOR3D &rhs) const
void Normalize ()
VECTOR3D GetNormalized () const
float GetLength () const
float GetSquaredLength () const
void RotateX (double angle)
VECTOR3D GetRotatedX (double angle) const
void RotateY (double angle)
VECTOR3D GetRotatedY (double angle) const
void RotateZ (double angle)
VECTOR3D GetRotatedZ (double angle) const
void RotateAxis (double angle, const VECTOR3D &axis)
VECTOR3D GetRotatedAxis (double angle, const VECTOR3D &axis) const
void PackTo01 ()
VECTOR3D GetPackedTo01 () const
VECTOR3D lerp (const VECTOR3D &v2, float factor) const
VECTOR3D QuadraticInterpolate (const VECTOR3D &v2, const VECTOR3D &v3, float factor) const
VECTOR3D operator+ (const VECTOR3D &rhs) const
VECTOR3D operator- (const VECTOR3D &rhs) const
VECTOR3D operator* (const float rhs) const
VECTOR3D operator/ (const float rhs) const
void Add (const VECTOR3D &v2, VECTOR3D &result)
void Subtract (const VECTOR3D &v2, VECTOR3D &result)
bool operator== (const VECTOR3D &rhs) const
bool operator!= (const VECTOR3D &rhs) const
void operator+= (const VECTOR3D &rhs)
void operator-= (const VECTOR3D &rhs)
void operator*= (const float rhs)
void operator/= (const float rhs)
VECTOR3D operator- (void) const
VECTOR3D operator+ (void) const
 operator float * () const
 operator const float * () const

Public Attributes

float x
float y
float z

Friends

VECTOR3D operator* (float scaleFactor, const VECTOR3D &rhs)


Constructor & Destructor Documentation

VECTOR3D::VECTOR3D ( void   )  [inline]

VECTOR3D::VECTOR3D ( float  newX,
float  newY,
float  newZ 
) [inline]

VECTOR3D::VECTOR3D ( const float *  rhs  )  [inline]

VECTOR3D::VECTOR3D ( const VECTOR3D rhs  )  [inline]

VECTOR3D::~VECTOR3D (  )  [inline]


Member Function Documentation

void VECTOR3D::Set ( float  newX,
float  newY,
float  newZ 
) [inline]

void VECTOR3D::SetX ( float  newX  )  [inline]

void VECTOR3D::SetY ( float  newY  )  [inline]

void VECTOR3D::SetZ ( float  newZ  )  [inline]

float VECTOR3D::GetX (  )  const [inline]

float VECTOR3D::GetY (  )  const [inline]

float VECTOR3D::GetZ (  )  const [inline]

void VECTOR3D::LoadZero ( void   )  [inline]

void VECTOR3D::LoadOne ( void   )  [inline]

VECTOR3D VECTOR3D::CrossProduct ( const VECTOR3D rhs  )  const [inline]

Here is the call graph for this function:

float VECTOR3D::DotProduct ( const VECTOR3D rhs  )  const [inline]

void VECTOR3D::Normalize ( void   ) 

Here is the call graph for this function:

VECTOR3D VECTOR3D::GetNormalized (  )  const

Here is the call graph for this function:

float VECTOR3D::GetLength (  )  const [inline]

float VECTOR3D::GetSquaredLength (  )  const [inline]

void VECTOR3D::RotateX ( double  angle  ) 

Here is the call graph for this function:

VECTOR3D VECTOR3D::GetRotatedX ( double  angle  )  const

Here is the call graph for this function:

void VECTOR3D::RotateY ( double  angle  ) 

Here is the call graph for this function:

VECTOR3D VECTOR3D::GetRotatedY ( double  angle  )  const

Here is the call graph for this function:

void VECTOR3D::RotateZ ( double  angle  ) 

Here is the call graph for this function:

VECTOR3D VECTOR3D::GetRotatedZ ( double  angle  )  const

Here is the call graph for this function:

void VECTOR3D::RotateAxis ( double  angle,
const VECTOR3D axis 
)

Here is the call graph for this function:

VECTOR3D VECTOR3D::GetRotatedAxis ( double  angle,
const VECTOR3D axis 
) const

Here is the call graph for this function:

void VECTOR3D::PackTo01 (  ) 

Here is the call graph for this function:

VECTOR3D VECTOR3D::GetPackedTo01 (  )  const

Here is the call graph for this function:

VECTOR3D VECTOR3D::lerp ( const VECTOR3D v2,
float  factor 
) const [inline]

VECTOR3D VECTOR3D::QuadraticInterpolate ( const VECTOR3D v2,
const VECTOR3D v3,
float  factor 
) const [inline]

VECTOR3D VECTOR3D::operator+ ( const VECTOR3D rhs  )  const [inline]

Here is the call graph for this function:

VECTOR3D VECTOR3D::operator- ( const VECTOR3D rhs  )  const [inline]

Here is the call graph for this function:

VECTOR3D VECTOR3D::operator* ( const float  rhs  )  const [inline]

Here is the call graph for this function:

VECTOR3D VECTOR3D::operator/ ( const float  rhs  )  const [inline]

Here is the call graph for this function:

void VECTOR3D::Add ( const VECTOR3D v2,
VECTOR3D result 
) [inline]

void VECTOR3D::Subtract ( const VECTOR3D v2,
VECTOR3D result 
) [inline]

bool VECTOR3D::operator== ( const VECTOR3D rhs  )  const

bool VECTOR3D::operator!= ( const VECTOR3D rhs  )  const [inline]

void VECTOR3D::operator+= ( const VECTOR3D rhs  )  [inline]

void VECTOR3D::operator-= ( const VECTOR3D rhs  )  [inline]

void VECTOR3D::operator*= ( const float  rhs  )  [inline]

void VECTOR3D::operator/= ( const float  rhs  )  [inline]

VECTOR3D VECTOR3D::operator- ( void   )  const [inline]

Here is the call graph for this function:

VECTOR3D VECTOR3D::operator+ ( void   )  const [inline]

VECTOR3D::operator float * (  )  const [inline]

VECTOR3D::operator const float * (  )  const [inline]


Friends And Related Function Documentation

VECTOR3D operator* ( float  scaleFactor,
const VECTOR3D rhs 
) [friend]


Member Data Documentation

float VECTOR3D::x

float VECTOR3D::y

float VECTOR3D::z


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

Generated on Thu Mar 19 19:36:14 2009 for CubicVR by  doxygen 1.5.6