linearly v0.32.0Docs


linearly v0.32.0 / mat4 / getRotation

Function: getRotation()

getRotation(mat): quat

Returns a quaternion representing the rotational component of a transformation matrix. If a matrix is built with fromRotationTranslation, the returned quaternion will be the same as the quaternion originally supplied.

Parameters

mat: mat4

Returns

quat

Defined in

src/mat4.ts:778open in new window