linearly v0.32.0 • Docs
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