vhdQuaternion Class Reference

#include <vhdQuaternion.h>

List of all members.

Public Member Functions

 vhdQuaternion (vhtReal fW=1.0, vhtReal fX=0.0, vhtReal fY=0.0, vhtReal fZ=0.0)
 vhdQuaternion (const vhdQuaternion &rkQ)
void fromRotationMatrix (const vhdMatrix3 &kRot)
void toRotationMatrix (vhdMatrix3 &kRot) const
void fromAngleAxis (const vhtReal &rfAngle, const vhdVector3 &rkAxis)
void toAngleAxis (vhtReal &rfAngle, vhdVector3 &rkAxis) const
void fromAxes (const vhdVector3 *akAxis)
void fromAxes (const vhdVector3 &xAxis, const vhdVector3 &yAxis, const vhdVector3 &zAxis)
void toAxes (vhdVector3 *akAxis) const
void toAxes (vhdVector3 &xAxis, vhdVector3 &yAxis, vhdVector3 &zAxis)
vhdQuaternion normalize () const
vhdQuaternionoperator= (const vhdQuaternion &rkQ)
vhdQuaternion operator+ (const vhdQuaternion &rkQ) const
vhdQuaternion operator- (const vhdQuaternion &rkQ) const
vhdQuaternion operator * (const vhdQuaternion &rkQ) const
vhdQuaternion operator *= (const vhdQuaternion &rkQ)
vhdQuaternion operator/= (vhtReal fScalar)
vhdQuaternion operator/ (vhtReal fScalar) const
vhdQuaternion operator *= (vhtReal fScalar)
vhdQuaternion operator * (vhtReal fScalar) const
vhdQuaternion operator- () const
bool operator== (const vhdQuaternion &rhs) const
vhtReal dot (const vhdQuaternion &rkQ) const
vhtReal norm () const
vhdQuaternion inverse () const
vhdQuaternion unitInverse () const
vhdQuaternion exp () const
vhdQuaternion log () const
vhdVector3 operator * (const vhdVector3 &rkvhdVector) const

Static Public Member Functions

static vhdQuaternion slerp (vhtReal fT, const vhdQuaternion &rkP, const vhdQuaternion &rkQ)
static vhdQuaternion slerpExtraSpins (vhtReal fT, const vhdQuaternion &rkP, const vhdQuaternion &rkQ, int iExtraSpins)
static void intermediate (const vhdQuaternion &rkQ0, const vhdQuaternion &rkQ1, const vhdQuaternion &rkQ2, vhdQuaternion &rka, vhdQuaternion &rkB)
static vhdQuaternion squad (vhtReal fT, const vhdQuaternion &rkP, const vhdQuaternion &rkA, const vhdQuaternion &rkB, const vhdQuaternion &rkQ)

Public Attributes

vhtReal w
vhtReal x
vhtReal y
vhtReal z

Static Public Attributes

static vhtReal ms_fEpsilon
static vhdQuaternion ZERO
static vhdQuaternion IDENTITY

Friends

vhdQuaternion operator * (vhtReal fScalar, const vhdQuaternion &rkQ)
std::ostream & operator<< (std::ostream &o, const vhdQuaternion &q)


Constructor & Destructor Documentation

vhdQuaternion::vhdQuaternion ( vhtReal  fW = 1.0,
vhtReal  fX = 0.0,
vhtReal  fY = 0.0,
vhtReal  fZ = 0.0 
)

vhdQuaternion::vhdQuaternion ( const vhdQuaternion rkQ  ) 


Member Function Documentation

void vhdQuaternion::fromRotationMatrix ( const vhdMatrix3 kRot  ) 

void vhdQuaternion::toRotationMatrix ( vhdMatrix3 kRot  )  const

void vhdQuaternion::fromAngleAxis ( const vhtReal rfAngle,
const vhdVector3 rkAxis 
)

void vhdQuaternion::toAngleAxis ( vhtReal rfAngle,
vhdVector3 rkAxis 
) const

void vhdQuaternion::fromAxes ( const vhdVector3 akAxis  ) 

void vhdQuaternion::fromAxes ( const vhdVector3 xAxis,
const vhdVector3 yAxis,
const vhdVector3 zAxis 
)

void vhdQuaternion::toAxes ( vhdVector3 akAxis  )  const

void vhdQuaternion::toAxes ( vhdVector3 xAxis,
vhdVector3 yAxis,
vhdVector3 zAxis 
)

vhdQuaternion vhdQuaternion::normalize (  )  const

vhdQuaternion & vhdQuaternion::operator= ( const vhdQuaternion rkQ  ) 

vhdQuaternion vhdQuaternion::operator+ ( const vhdQuaternion rkQ  )  const

vhdQuaternion vhdQuaternion::operator- ( const vhdQuaternion rkQ  )  const

vhdQuaternion vhdQuaternion::operator * ( const vhdQuaternion rkQ  )  const

vhdQuaternion vhdQuaternion::operator *= ( const vhdQuaternion rkQ  ) 

vhdQuaternion vhdQuaternion::operator/= ( vhtReal  fScalar  ) 

vhdQuaternion vhdQuaternion::operator/ ( vhtReal  fScalar  )  const

vhdQuaternion vhdQuaternion::operator *= ( vhtReal  fScalar  ) 

vhdQuaternion vhdQuaternion::operator * ( vhtReal  fScalar  )  const

vhdQuaternion vhdQuaternion::operator- (  )  const

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

vhtReal vhdQuaternion::dot ( const vhdQuaternion rkQ  )  const

vhtReal vhdQuaternion::norm (  )  const

vhdQuaternion vhdQuaternion::inverse (  )  const

vhdQuaternion vhdQuaternion::unitInverse (  )  const

vhdQuaternion vhdQuaternion::exp (  )  const

vhdQuaternion vhdQuaternion::log (  )  const

vhdVector3 vhdQuaternion::operator * ( const vhdVector3 rkvhdVector  )  const

vhdQuaternion vhdQuaternion::slerp ( vhtReal  fT,
const vhdQuaternion rkP,
const vhdQuaternion rkQ 
) [static]

vhdQuaternion vhdQuaternion::slerpExtraSpins ( vhtReal  fT,
const vhdQuaternion rkP,
const vhdQuaternion rkQ,
int  iExtraSpins 
) [static]

void vhdQuaternion::intermediate ( const vhdQuaternion rkQ0,
const vhdQuaternion rkQ1,
const vhdQuaternion rkQ2,
vhdQuaternion rka,
vhdQuaternion rkB 
) [static]

vhdQuaternion vhdQuaternion::squad ( vhtReal  fT,
const vhdQuaternion rkP,
const vhdQuaternion rkA,
const vhdQuaternion rkB,
const vhdQuaternion rkQ 
) [static]


Friends And Related Function Documentation

vhdQuaternion operator * ( vhtReal  fScalar,
const vhdQuaternion rkQ 
) [friend]

std::ostream& operator<< ( std::ostream &  o,
const vhdQuaternion q 
) [friend]


Member Data Documentation

vhtReal vhdQuaternion::ms_fEpsilon [static]

vhdQuaternion vhdQuaternion::ZERO [static]

vhdQuaternion vhdQuaternion::IDENTITY [static]

vhtReal vhdQuaternion::w

vhtReal vhdQuaternion::x

vhtReal vhdQuaternion::y

vhtReal vhdQuaternion::z


Generated on Thu Jan 18 10:06:26 2007 for vhdPLUS by  doxygen 1.5.1-p1