math docs
    Preparing search index...

    Function getRotation

    • 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

      • out: quat.Quat

        Quaternion to receive the rotation component

      • mat: mat4.Mat4

        Matrix to be decomposed (input)

      Returns quat.Quat

      out