<< CL_rot_angularVelocity DEPRECATED CL_rot_quat2eul >>

CelestLab >> DEPRECATED > CL_rot_eul2quat

CL_rot_eul2quat

Euler '123' angles to quaternion - DEPRECATED

Calling Sequence

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

Description

Parameters

phi :

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

theta :

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

psi :

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

q :

Quaternion (dim N)

Authors

Bibliography

See also

Examples

// Example 1
phi = 0.2; // radians
theta = 0.3;
psi = 0.4;
q = CL_rot_eul2quat(phi,theta,psi)

// Same computation with matrix:
M = CL_rot_angles2matrix([1,2,3], [phi;theta;psi]);
q = CL_rot_matrix2quat(M)

Report an issue
<< CL_rot_angularVelocity DEPRECATED CL_rot_quat2eul >>