C4 Engine Terathon Software C4 Engine API Documentation

• Math Library

API Links
Developer Links

Quaternion::GetRotationScaleMatrix

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

Matrix3D GetRotationScaleMatrix(voidconst;

Description
The GetRotationScaleMatrix function converts a (not necessarily unit) quaternion to a Matrix3D object that represents the same rotation when it premultiplies a Vector3D object. This function differs from the Quaternion::GetRotationMatrix function in that the magnitude of the quaternion is included in the output matrix.
See Also

Quaternion::GetRotationMatrix

Quaternion::SetRotationMatrix

Quaternion::SetRotationAboutX

Quaternion::SetRotationAboutY

Quaternion::SetRotationAboutZ

Quaternion::SetRotationAboutAxis