For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.
Function getRotation
-
Parameters
- out: quat
Quaternion to receive the rotation component
- mat: ReadonlyMat4
Matrix to be decomposed (input)
Returns quat
out
- out: 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.