<< CL_rot_quat2eul Coordinates and frames CL_rot_quatSlerp >>

CelestLab >> Coordinates and frames > CL_rot_quat2matrix

CL_rot_quat2matrix

Quaternion to transformation matrix

Calling Sequence

[M]=CL_rot_quat2matrix(q)

Description

Parameters

q:

Quaternion (dim N)

M:

Transformation matrix (3x3xN)

Bibliography

Authors

See also

Examples

ang = CL_deg2rad(10)
M1 = CL_rot_angles2matrix(3,ang)
q1 = CL_rot_matrix2quat(M1)
q2 = CL_rot_eul2quat(0,0,ang)  // same as q1
M2 = CL_rot_quat2matrix(q2)    // same as M1
<< CL_rot_quat2eul Coordinates and frames CL_rot_quatSlerp >>