toMat4

fun toMat4(res: FloatArray)

Converts the quaternion to a 4x4 rotation matrix and stores it in the provided array.

Parameters

res

The array to store the resulting rotation matrix.