Quaternion to Euler '123' angles - DEPRECATED
[phi,theta,psi] = CL_rot_quat2eul(q)
This function is deprecated.
Replacement function: CL_rot_quat2angles
Computes the Euler angles (rotation order: 1,2,3) that corresponds to a given quaternion.
Notes:
- One should be aware of singularities in the Euler angles when the second angle (theta) approaches +pi, -pi, +pi/2 or -pi/2. These cases should be handled specifically or results might not be accurate!
- See Data types or CL_rot_defQuat for more details on quaternions.
Quaternion (dim N)
Rotation angle around X axis [rad] (1xN)
Rotation angle around Y axis [rad] (1xN)
Rotation angle around Z axis [rad] (1xN)
CNES - DCT/SB
1) Mecanique spatiale - CNES Cepadues 1995, Tome I, 7.2.2.3 Les quaternions