#include <Quaternion.h>
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 Vector & | GetVector () 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 Quaternion & | operator *= (const float &fOther) |
const Quaternion & | operator/= (const float &fOther) |
const Quaternion & | operator+= (const Quaternion &quaOther) |
const Quaternion & | operator-= (const Quaternion &quaOther) |
const Quaternion & | operator *= (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 |
Definition at line 6 of file Quaternion.h.
Quaternion::Quaternion | ( | ) | [inline] |
Definition at line 9 of file Quaternion.h.
References Set().
Referenced by GetInverse(), operator *(), and Quaternion().
Quaternion::Quaternion | ( | const Vector & | vecV, | |
const float | fS | |||
) | [inline] |
Definition at line 14 of file Quaternion.h.
References Set().
Quaternion::Quaternion | ( | const Vector & | vecV | ) | [inline] |
Definition at line 19 of file Quaternion.h.
References Set().
Quaternion::Quaternion | ( | const float | fAngle, | |
const Vector & | vecAxis | |||
) | [inline] |
Definition at line 24 of file Quaternion.h.
References Vector::GetNormalized(), and Set().
Definition at line 30 of file Quaternion.h.
References Vector::GetCross(), Vector::GetDot(), Vector::GetNormalized(), and Quaternion().
Quaternion::~Quaternion | ( | ) | [inline] |
Definition at line 37 of file Quaternion.h.
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().
void Quaternion::SetVector | ( | const Vector & | vecV | ) | [inline] |
Definition at line 48 of file Quaternion.h.
References GetScalar(), and Set().
void Quaternion::SetScalar | ( | const float | fS | ) | [inline] |
Definition at line 53 of file Quaternion.h.
References GetVector(), and Set().
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().
const Quaternion Quaternion::GetNormalized | ( | ) | const [inline] |
Definition at line 73 of file Quaternion.h.
References GetMagnitude(), m_fScalar, and m_vecVector.
Referenced by normalize().
const Quaternion Quaternion::GetInverse | ( | ) | const [inline] |
Definition at line 87 of file Quaternion.h.
References GetScalar(), GetVector(), and Quaternion().
Referenced by invert(), and operator *().
void Quaternion::normalize | ( | ) | [inline] |
Definition at line 92 of file Quaternion.h.
References GetNormalized().
Referenced by Set().
void Quaternion::invert | ( | ) | [inline] |
Definition at line 97 of file Quaternion.h.
References GetInverse().
const bool Quaternion::operator== | ( | const Quaternion & | quaOther | ) | const [inline] |
Definition at line 102 of file Quaternion.h.
References GetScalar(), and GetVector().
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().
const Quaternion& Quaternion::operator/= | ( | const float & | fOther | ) | [inline] |
Definition at line 118 of file Quaternion.h.
References GetScalar(), GetVector(), and Set().
const Quaternion& Quaternion::operator+= | ( | const Quaternion & | quaOther | ) | [inline] |
Definition at line 124 of file Quaternion.h.
References GetScalar(), GetVector(), and Set().
const Quaternion& Quaternion::operator-= | ( | const Quaternion & | quaOther | ) | [inline] |
Definition at line 130 of file Quaternion.h.
References GetScalar(), GetVector(), and Set().
const Quaternion& Quaternion::operator *= | ( | const Quaternion & | quaOther | ) | [inline] |
Definition at line 136 of file Quaternion.h.
References Vector::GetDot(), GetScalar(), GetVector(), and Set().
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.
Definition at line 179 of file Quaternion.h.
References GetInverse(), Vector::GetMagnitude(), GetVector(), and Quaternion().