Main Page | Modules | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

TQuaternion Class Template Reference
[Math]

quaternion template More...

#include <gmlquat.h>

List of all members.

Public Member Functions

 TQuaternion (const T v[4])
 TQuaternion (T q0, T q1, T q2, T q3)
 TQuaternion (const TMatrix4x4< T > &m)
 TQuaternion (const TVector3< T > &axis, T radians)
 TQuaternion (const TVector3< T > &rotateFrom, const TVector3< T > &rotateTo)
 TQuaternion (const TVector3< T > &from_look, const TVector3< T > &from_up, const TVector3< T > &to_look, const TVector3< T > &to_up)
const T * GetValue () const
void GetValue (T &q0, T &q1, T &q2, T &q3) const
TQuaternionSetValue (T q0, T q1, T q2, T q3)
void GetValue (TVector3< T > &axis, T &radians) const
void GetValue (TMatrix4x4< T > &m) const
TQuaternionSetValue (const T *qp)
TQuaternionSetValue (const TMatrix4x4< T > &m)
TQuaternionSetValue (const TVector3< T > &axis, T theta)
TQuaternionSetValue (const TVector3< T > &rotateFrom, const TVector3< T > &rotateTo)
TQuaternionSetValue (const TVector3< T > &from_look, const TVector3< T > &from_up, const TVector3< T > &to_look, const TVector3< T > &to_up)
TQuaternionoperator *= (const TQuaternion &qr)
void Normalize ()
bool Equals (const TQuaternion &r, T tolerance) const
TQuaternionConjugate ()
TQuaternionInvert ()
TQuaternion Inverse () const
void MultVec (const TVector3< T > &src, TVector3< T > &dst) const
void MultVec (TVector3< T > &src_and_dst) const
void ScaleAngle (T scaleFactor)
T & operator[] (int i)
const T & operator[] (int i) const

Static Public Member Functions

TQuaternion Slerp (const TQuaternion &p, const TQuaternion &q, T alpha)
TQuaternion Identity ()

Protected Member Functions

void CounterNormalize ()

Protected Attributes

unsigned char counter

Friends

bool operator== (const TQuaternion &q1, const TQuaternion &q2)
bool operator!= (const TQuaternion &q1, const TQuaternion &q2)
TQuaternion operator * (const TQuaternion &q1, const TQuaternion &q2)

Related Functions

(Note that these are not member functions.)

TQuaternion< T_TO > Conv (const TQuaternion< T_FROM > &u)
 Convert TQuaternion<T_FROM> to TQuaternion<T_TO>.

TQuaternion< float > ConvF (const TQuaternion< T > &u)
 Convert TQuaternion<T> to TQuaternion<float>.

TQuaternion< double > ConvD (const TQuaternion< T > &u)
 Convert TQuaternion<T> to TQuaternion<double>.


Detailed Description

template<class T>
class gml::TQuaternion< T >

quaternion template


The documentation for this class was generated from the following file:
Generated on Tue Jan 13 21:12:07 2004 for Graphics and Media Lab CSL by doxygen 1.3.4