Public Member Functions | |
| Quaternion (float x=0.0, float y=0.0, float z=0.0, float w=1.0) | |
| Quaternion (const Quaternion &other) | |
| Quaternion (const Matrix3 &rotMat) | |
| Quaternion (const Vector3 &axis, float angle_radian) | |
| Quaternion (float *xyz) | |
| Quaternion & | Normalize () |
| void | SetRotation (const Vector3 &axis, float angle_radian) |
| void | SetRotation (const Matrix3 &rotMat) |
| void | SetRotation (const Quaternion &quaternion) |
| void | GetRotation (Vector3 *pAxis, float *pAngle_radian) const |
| void | GetRotation (Matrix3 *pMat33) const |
| Matrix3 | GetMatrix33 () const |
| float | Length () const |
| void | SetIdentity () |
| void | Inverse () |
| Quaternion | InverseOther () const |
| Quaternion & | operator= (const Quaternion &other) |
| Quaternion & | operator= (float *xyz) |
| Quaternion | operator+ (const Quaternion &other) const |
| Quaternion | operator+ (const Vector3 &vec) const |
| Quaternion | operator* (const Quaternion &other) const |
| Vector3 | operator* (const Vector3 &vec) const |
Public Attributes | ||
| union { | ||
| struct { | ||
| float m [4] | ||
| } | ||
| struct { | ||
| float x | ||
| float y | ||
| float z | ||
| float w | ||
| } | ||
| }; | ||
Friends | |
| Vector3 | operator* (const Vector3 &vec, const Quaternion &q) |