|
Public Member Functions |
| Quat () |
| Quat (const Real v[4]) |
| Quat (Real x, Real y, Real z, Real w) |
void | Init (const Real *v) |
void | CreateFromMatrix (const float *matrix, int n_cols) |
void | ToArray (Real *v) const |
void | ToM3D (M3D *m) const |
| Quat (const V3D &axis, Real angle) |
| Quat (Real yaw, Real pitch, Real roll) |
void | setRotation (const V3D &axis, Real angle) |
void | setEuler (Real yaw, Real pitch, Real roll) |
void | setValue (Real x, Real y, Real z, Real w) |
const Real & | operator[] (int i) const |
Quat & | operator+= (const Quat &q) |
Quat & | operator-= (const Quat &q) |
Quat & | operator *= (const Quat &q) |
Quat & | operator *= (Real s) |
Quat & | operator/= (Real s) |
Real | length2 () const |
Real | length () const |
bool | approxQUAT_Zero () const |
void | normalize () |
Quat | normalized () const |
void | conjugate () |
Quat | conjugate () const |
void | invert () |
Quat | inverse () const |
Quat | Slerp (const Quat &q1, const Quat &q2, float t) |
Real | getAngle () const |
V3D | getAxis () const |
Private Attributes |
Real | vec [4] |
Classe Quaternió robada de SOLID i extesa amb noves operacions.