• Converts a quaternion into a 4x4 rotation matrix.

    Parameters

    • q: Quat

      The quaternion to convert.

    • dest: Mat4 = ...

      The resulting 4x4 rotation matrix (default is created if not provided).

    Returns Mat4

    The resulting rotation matrix.