pub fn quat_to_mat4<N: Real>(x: &Qua<N>) -> TMat4<N>
Converts a quaternion to a rotation matrix in homogenous coordinates.