Converts a 4-dimensional unit quaternion vector c(w, x, y, z) back into Unity's specific (improper) extrinsic Z-X-Y Euler representation.

quaternion2eulunity(q)

Arguments

q

A numeric vector of length 4 representing the quaternion c(w, x, y, z).

Value

A named numeric vector of length 3 containing rot_x, rot_y, and rot_z in degrees.