<< CL_rot_quat2axAng Coordinates and frames CL_rot_quat2matrix >>

CelestLab >> Coordinates and frames > CL_rot_quat2eul

CL_rot_quat2eul

Quaternion to Euler '123' angles - DEPRECATED

Calling Sequence

[phi,theta,psi] = CL_rot_quat2eul(q)

Description

Parameters

q :

Quaternion (dim N)

phi :

Rotation angle around X axis [rad] (1xN)

theta :

Rotation angle around Y axis [rad] (1xN)

psi :

Rotation angle around Z axis [rad] (1xN)

Authors

Bibliography

See also

Examples

M = CL_rot_angles2matrix([1,2,3], [0.5; 1.1; 2.3]);
q = CL_rot_matrix2quat(M); // quaternion of this rotation
[phi,theta,psi] = CL_rot_quat2eul(q)
<< CL_rot_quat2axAng Coordinates and frames CL_rot_quat2matrix >>