pub fn rotation_matrix_to_quaternion(rot: Rotation3<f64>) -> [f64; 4]
Convert a rotation matrix to a quaternion.