@kognifai/cogsengine
    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

        Quaternion to receive the rotation component

      • mat: ReadonlyMat4

        Matrix to be decomposed (input)

      Returns quat

      out