• Encodes rotation from a matrix into a quaternion.

    Parameters

    • m: Mat4

      The 4x4 rotation matrix.

    • dest: Quat = ...

      The resulting quaternion (default is created if not provided).

    Returns Quat

    The quaternion representing the matrix's rotation.