#include <Mathlib.h>
Public Member Functions | |
Quaternion () | |
Quaternion (Real w, Real x, Real y, Real z) | |
void | identity () |
void | normalize () |
void | computeW () |
void | rotate (Vector3< Real > &v) const |
void | fromMatrix (const Matrix4x4< Real > &m) |
void | fromEulerAngles (Real x, Real y, Real z) |
void | toEulerAngles (Real &x, Real &y, Real &z) const |
Real | rotationAngle () const |
Vector3< Real > | rotationAxis () const |
Quaternion< Real > | operator+ (const Quaternion< Real > &q) const |
Quaternion< Real > & | operator+= (const Quaternion< Real > &q) |
Quaternion< Real > | operator- (const Quaternion< Real > &q) const |
Quaternion< Real > & | operator-= (const Quaternion< Real > &q) |
Quaternion< Real > | operator* (const Quaternion< Real > &q) const |
Quaternion< Real > & | operator*= (const Quaternion< Real > &q) |
Quaternion< Real > | operator* (Real k) const |
Quaternion< Real > & | operator*= (Real k) |
Quaternion< Real > | operator* (const Vector3< Real > &v) const |
Quaternion< Real > & | operator*= (const Vector3< Real > &v) |
Quaternion< Real > | operator/ (Real k) const |
Quaternion< Real > & | operator/= (Real k) |
Quaternion< Real > | operator~ () const |
Quaternion< Real > | operator- () const |
Public Attributes | |
union { | |
struct { | |
Real _w | |
Real _x | |
Real _y | |
Real _z | |
} | |
Real _q [4] | |
}; |
Definition at line 310 of file Mathlib.h.
Quaternion< Real >::Quaternion | ( | ) | [inline] |
Quaternion< Real >::Quaternion | ( | Real | w, | |
Real | x, | |||
Real | y, | |||
Real | z | |||
) | [inline] |
void Quaternion< Real >::identity | ( | ) |
void Quaternion< Real >::normalize | ( | ) |
void Quaternion< Real >::computeW | ( | ) |
void Quaternion< Real >::rotate | ( | Vector3< Real > & | v | ) | const |
void Quaternion< Real >::fromMatrix | ( | const Matrix4x4< Real > & | m | ) |
void Quaternion< Real >::fromEulerAngles | ( | Real | x, | |
Real | y, | |||
Real | z | |||
) |
void Quaternion< Real >::toEulerAngles | ( | Real & | x, | |
Real & | y, | |||
Real & | z | |||
) | const |
Real Quaternion< Real >::rotationAngle | ( | ) | const |
Vector3<Real> Quaternion< Real >::rotationAxis | ( | ) | const |
Quaternion<Real> Quaternion< Real >::operator+ | ( | const Quaternion< Real > & | q | ) | const |
Quaternion<Real>& Quaternion< Real >::operator+= | ( | const Quaternion< Real > & | q | ) |
Quaternion<Real> Quaternion< Real >::operator- | ( | const Quaternion< Real > & | q | ) | const |
Quaternion<Real>& Quaternion< Real >::operator-= | ( | const Quaternion< Real > & | q | ) |
Quaternion<Real> Quaternion< Real >::operator* | ( | const Quaternion< Real > & | q | ) | const |
Quaternion<Real>& Quaternion< Real >::operator*= | ( | const Quaternion< Real > & | q | ) |
Quaternion<Real> Quaternion< Real >::operator* | ( | Real | k | ) | const |
Quaternion<Real>& Quaternion< Real >::operator*= | ( | Real | k | ) |
Quaternion<Real> Quaternion< Real >::operator* | ( | const Vector3< Real > & | v | ) | const |
Quaternion<Real>& Quaternion< Real >::operator*= | ( | const Vector3< Real > & | v | ) |
Quaternion<Real> Quaternion< Real >::operator/ | ( | Real | k | ) | const |
Quaternion<Real>& Quaternion< Real >::operator/= | ( | Real | k | ) |
Quaternion<Real> Quaternion< Real >::operator~ | ( | ) | const |
Quaternion<Real> Quaternion< Real >::operator- | ( | ) | const |
Real Quaternion< Real >::_w |
Real Quaternion< Real >::_x |
Real Quaternion< Real >::_y |
Real Quaternion< Real >::_z |
Real Quaternion< Real >::_q[4] |
union { ... } |