fromQuaternion

fun fromQuaternion(quaternion: Quaternion, result: Matrix3? = definedExternally): Matrix3(source)

Computes a 3x3 rotation matrix from the provided quaternion.

Return

The 3x3 rotation matrix from this quaternion.

Parameters

quaternion

the quaternion to use.

result

The object in which the result will be stored, if undefined a new instance will be created.

See also