Function quatToRotationMat4

  • Converts a quaternion to a 4x4 rotation matrix. The resulting matrix is stored in the provided matrix array.

    Parameters

    • q: Quat

      The quaternion to convert, represented as a 4-element array [x, y, z, w].

    • m: Mat4

      The matrix to store the result. It will be modified in place.

    Returns Mat4

    The matrix representing the quaternion rotation.