#include <nemath.h>
Collaboration diagram for Quaternion:

Public Member Functions | |
| Quaternion () | |
| Quaternion (float fX, float fY, float fZ, float fW) | |
| Quaternion (const Matrix &rkMatrix) | |
| Quaternion (const AxisAngle &rkAxisAngle) | |
| Quaternion (const EulerAngles &rkAngles) | |
| Quaternion & | Reset () |
| Quaternion & | Set (float fX, float fY, float fZ, float fW) |
| Quaternion & | Normalize () |
| Matrix & | ToMatrix (Matrix *pkMatrix) const |
| AxisAngle | ToAxisAngle () const |
| EulerAngles | ToEulerAngles (unsigned int uiOrder=EulerAngles::XYZs) const |
| Quaternion & | Inverse () |
| Quaternion & | Slerp (float fT, const Quaternion &rkDest, bool bActuteAngle=false) |
| Quaternion & | operator= (const Matrix &rkMatrix) |
| Quaternion & | operator= (const AxisAngle &rkAxisAngle) |
| Quaternion & | operator= (const EulerAngles &rkEulerAngles) |
| Quaternion | operator * (const Quaternion &rkQuat) const |
| Quaternion | operator * (float fScalar) const |
| Quaternion & | operator *= (const Quaternion &rkQuat) |
| Quaternion & | operator *= (float fScalar) |
| Quaternion | operator~ () const |
| Vector3d | operator * (const Vector3d &rkVector) const |
| Quaternion | operator+ (const Quaternion &rkQuat) const |
| bool | operator== (const Quaternion &rkQuat) const |
| bool | operator!= (const Quaternion &rkQuat) const |
Public Attributes | |
| float | qx |
| float | qy |
| float | qz |
| float | qw |
Static Public Attributes | |
| const NE_STATIC Quaternion | IDENTITY |
|
|
Reset components to identity quat |
|
||||||||||||||||||||
|
Set components
|
|
|
Assignment from matrix (PERFORMANCE WARNING)
|
|
|
Assignment from axis-angle rotation
|
|
|
Assignment from Euler angles
|
|
|
Reset components to identity quat
|
|
||||||||||||||||||||
|
Set components
|
|
|
Normalize
|
|
|
Convert to matrix
|
|
|
Convert to axis rotation
|
|
|
Convert to euler angles
|
|
|
Inverse quaternion (will change this quat), equal to conjugate
|
|
||||||||||||||||
|
Spherical linear interpolation
|
|
|
Assignment from matrix
|
|
|
Assignment from axis-angle rotation
|
|
|
Assignment from euler angles
|
|
|
Quaternion multiplication
|
|
|
Multiplication with scalar (to non-unit quat, Normalize() will ofcourse restore quat)
|
|
|
Quaternion multiplication and assignment
|
|
|
Multiplication with scalar (to non-unit quat, Normalize() will ofcourse restore quat)
|
|
|
Inverse quaternion (conjugate)
|
|
|
Multiplication with vector (rotate vector)
|
|
|
Quaternion addition (to non-unit quat)
|
|
|
Compare quaternions with epsilon tolerance
|
|
|
Compare quaternions with epsilon tolerance
|
|
|
Components |
|
|
Components |
|
|
Components |
|
|
Components |
|
|
Identity quaternion |
1.3.5