C4 Engine Terathon Software C4 Engine API Documentation

• Math Library

API Links
Developer Links

Quaternion::GetRotationMatrix

Defined in:  C4Quaternion.h
Converts a quaternion to a 3 × 3 matrix.
Prototype

Matrix3D GetRotationMatrix(voidconst;

Description
The GetRotationMatrix function converts a unit quaternion to a Matrix3D object that represents the same rotation when it premultiplies a Vector3D object.
See Also

Quaternion::GetRotationScaleMatrix

Quaternion::SetRotationMatrix

Quaternion::SetRotationAboutX

Quaternion::SetRotationAboutY

Quaternion::SetRotationAboutZ

Quaternion::SetRotationAboutAxis