<< CL_rot_quat2axAng Coordinates and frames CL_rot_quatSlerp >>

CelestLab >> Coordinates and frames > CL_rot_quat2matrix

CL_rot_quat2matrix

Quaternion to transformation matrix

Calling Sequence

[M, omega] = CL_rot_quat2matrix(q, [, qdot])

Description

Parameters

q:

Quaternion (dim N)

qdot:

Quaternion time derivative. Can be empty (dim N)

M:

Transformation matrix (3x3xN)

omega:

Angular velocity vector. Empty if not computed (3xN)

Bibliography

Authors

See also

Examples

ang = CL_deg2rad(10)
M1 = CL_rot_angles2matrix(3,ang)
q1 = CL_rot_matrix2quat(M1)
M2 = CL_rot_quat2matrix(q1)    // same as M1

Report an issue
<< CL_rot_quat2axAng Coordinates and frames CL_rot_quatSlerp >>