Public Member Functions | |
| cQuaternion (float afAngle, const cVector3< float > &avAxis) | |
| constexpr | cQuaternion (float afW, float afX, float afY, float afZ) |
| void | Normalise () |
| void | ToRotationMatrix (cMatrix< float > &a_mtxDest) const |
| void | FromRotationMatrix (const cMatrix< float > &a_mtxRot) |
| void | FromAngleAxis (float afAngle, const cVector3< float > &avAxis) |
| cQuaternion | operator+ (const cQuaternion &aqB) const |
| cQuaternion | operator- (const cQuaternion &aqB) const |
| cQuaternion | operator* (const cQuaternion &aqB) const |
| cQuaternion | operator* (float afScalar) const |
Public Attributes | |
| cVector3< float > | v |
| float | w |
Static Public Attributes | |
| static const cQuaternion | Identity |
| void hpl::cQuaternion::FromAngleAxis | ( | float | afAngle, |
| const cVector3< float > & | avAxis | ||
| ) |
Set the quaternion from and angle and axis.
| afAngle | |
| &avAxis | MUST be unit length! |