Function getRotation
Parameters
- out: quat
Quaternion to receive the rotation component
- mat: ReadonlyMat4
Matrix to be decomposed (input)
Returns quat
out
- out: quat
Was this helpful?
Quaternion to receive the rotation component
Matrix to be decomposed (input)
out
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.