Quaternion Class Reference

#include <Quaternion.h>

Collaboration diagram for Quaternion:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Quaternion ()
 Quaternion (const Vector &vecV, const float fS)
 Quaternion (const Vector &vecV)
 Quaternion (const float fAngle, const Vector &vecAxis)
 Quaternion (const Vector &vecFrom, const Vector &vecTo)
 ~Quaternion ()
void Set (const Vector &vecV, const float fS)
void SetVector (const Vector &vecV)
void SetScalar (const float fS)
const VectorGetVector () const
const float & GetScalar () const
const float GetMagnitude () const
const Quaternion GetNormalized () const
const Quaternion GetInverse () const
void normalize ()
void invert ()
const bool operator== (const Quaternion &quaOther) const
const bool operator!= (const Quaternion &quaOther) const
const Quaternionoperator *= (const float &fOther)
const Quaternionoperator/= (const float &fOther)
const Quaternionoperator+= (const Quaternion &quaOther)
const Quaternionoperator-= (const Quaternion &quaOther)
const Quaternionoperator *= (const Quaternion &quaOther)
const Quaternion operator * (const float fOther) const
const Quaternion operator/ (const float fOther) const
const Quaternion operator+ (const Quaternion &quaOther) const
const Quaternion operator- (const Quaternion &quaOther) const
const Quaternion operator * (const Quaternion &quaOther) const
const Vector operator * (const Vector &vecOther) const


Detailed Description

Definition at line 6 of file Quaternion.h.


Constructor & Destructor Documentation

Quaternion::Quaternion (  )  [inline]

Definition at line 9 of file Quaternion.h.

References Set().

Referenced by GetInverse(), operator *(), and Quaternion().

Here is the call graph for this function:

Quaternion::Quaternion ( const Vector vecV,
const float  fS 
) [inline]

Definition at line 14 of file Quaternion.h.

References Set().

Here is the call graph for this function:

Quaternion::Quaternion ( const Vector vecV  )  [inline]

Definition at line 19 of file Quaternion.h.

References Set().

Here is the call graph for this function:

Quaternion::Quaternion ( const float  fAngle,
const Vector vecAxis 
) [inline]

Definition at line 24 of file Quaternion.h.

References Vector::GetNormalized(), and Set().

Here is the call graph for this function:

Quaternion::Quaternion ( const Vector vecFrom,
const Vector vecTo 
) [inline]

Definition at line 30 of file Quaternion.h.

References Vector::GetCross(), Vector::GetDot(), Vector::GetNormalized(), and Quaternion().

Here is the call graph for this function:

Quaternion::~Quaternion (  )  [inline]

Definition at line 37 of file Quaternion.h.


Member Function Documentation

void Quaternion::Set ( const Vector vecV,
const float  fS 
) [inline]

Definition at line 41 of file Quaternion.h.

References normalize().

Referenced by operator *=(), operator+=(), operator-=(), operator/=(), operator>>(), Quaternion(), SetScalar(), and SetVector().

Here is the call graph for this function:

void Quaternion::SetVector ( const Vector vecV  )  [inline]

Definition at line 48 of file Quaternion.h.

References GetScalar(), and Set().

Here is the call graph for this function:

void Quaternion::SetScalar ( const float  fS  )  [inline]

Definition at line 53 of file Quaternion.h.

References GetVector(), and Set().

Here is the call graph for this function:

const Vector& Quaternion::GetVector (  )  const [inline]

Definition at line 58 of file Quaternion.h.

Referenced by GetInverse(), GetMagnitude(), Matrix::GetRotated(), operator *(), operator *=(), operator+=(), operator-=(), operator/=(), operator<<(), operator==(), and SetScalar().

const float& Quaternion::GetScalar (  )  const [inline]

Definition at line 63 of file Quaternion.h.

Referenced by GetInverse(), GetMagnitude(), Matrix::GetRotated(), operator *=(), operator+=(), operator-=(), operator/=(), operator<<(), operator==(), and SetVector().

const float Quaternion::GetMagnitude (  )  const [inline]

Definition at line 68 of file Quaternion.h.

References GetScalar(), and GetVector().

Referenced by GetNormalized().

Here is the call graph for this function:

const Quaternion Quaternion::GetNormalized (  )  const [inline]

Definition at line 73 of file Quaternion.h.

References GetMagnitude(), m_fScalar, and m_vecVector.

Referenced by normalize().

Here is the call graph for this function:

const Quaternion Quaternion::GetInverse (  )  const [inline]

Definition at line 87 of file Quaternion.h.

References GetScalar(), GetVector(), and Quaternion().

Referenced by invert(), and operator *().

Here is the call graph for this function:

void Quaternion::normalize (  )  [inline]

Definition at line 92 of file Quaternion.h.

References GetNormalized().

Referenced by Set().

Here is the call graph for this function:

void Quaternion::invert (  )  [inline]

Definition at line 97 of file Quaternion.h.

References GetInverse().

Here is the call graph for this function:

const bool Quaternion::operator== ( const Quaternion quaOther  )  const [inline]

Definition at line 102 of file Quaternion.h.

References GetScalar(), and GetVector().

Here is the call graph for this function:

const bool Quaternion::operator!= ( const Quaternion quaOther  )  const [inline]

Definition at line 107 of file Quaternion.h.

const Quaternion& Quaternion::operator *= ( const float &  fOther  )  [inline]

Definition at line 112 of file Quaternion.h.

References GetScalar(), GetVector(), and Set().

Here is the call graph for this function:

const Quaternion& Quaternion::operator/= ( const float &  fOther  )  [inline]

Definition at line 118 of file Quaternion.h.

References GetScalar(), GetVector(), and Set().

Here is the call graph for this function:

const Quaternion& Quaternion::operator+= ( const Quaternion quaOther  )  [inline]

Definition at line 124 of file Quaternion.h.

References GetScalar(), GetVector(), and Set().

Here is the call graph for this function:

const Quaternion& Quaternion::operator-= ( const Quaternion quaOther  )  [inline]

Definition at line 130 of file Quaternion.h.

References GetScalar(), GetVector(), and Set().

Here is the call graph for this function:

const Quaternion& Quaternion::operator *= ( const Quaternion quaOther  )  [inline]

Definition at line 136 of file Quaternion.h.

References Vector::GetDot(), GetScalar(), GetVector(), and Set().

Here is the call graph for this function:

const Quaternion Quaternion::operator * ( const float  fOther  )  const [inline]

Definition at line 144 of file Quaternion.h.

const Quaternion Quaternion::operator/ ( const float  fOther  )  const [inline]

Definition at line 151 of file Quaternion.h.

const Quaternion Quaternion::operator+ ( const Quaternion quaOther  )  const [inline]

Definition at line 158 of file Quaternion.h.

const Quaternion Quaternion::operator- ( const Quaternion quaOther  )  const [inline]

Definition at line 165 of file Quaternion.h.

const Quaternion Quaternion::operator * ( const Quaternion quaOther  )  const [inline]

Definition at line 172 of file Quaternion.h.

const Vector Quaternion::operator * ( const Vector vecOther  )  const [inline]

Definition at line 179 of file Quaternion.h.

References GetInverse(), Vector::GetMagnitude(), GetVector(), and Quaternion().

Here is the call graph for this function:


The documentation for this class was generated from the following file:
Generated on Mon Dec 10 18:18:26 2007 for VisLU by  doxygen 1.5.4