<< CL_rot_angles2quat Coordinates and frames CL_rot_compose >>

CelestLab >> Coordinates and frames > CL_rot_axAng2quat

CL_rot_axAng2quat

Rotation axis and angle to quaternion

Calling Sequence

q = CL_rot_axAng2quat(u,alpha)

Description

Parameters

u :

Rotation axis [ux; uy; uz] (3xN or 3x1)

alpha :

Rotation angle [rad] (1xN or 1x1)

q :

Corresponding quaternion (dim N)

Authors

See also

Examples

// 90 degree rotation around Z axis :
q = CL_rot_axAng2quat([0;0;1], %pi/2)

Report an issue
<< CL_rot_angles2quat Coordinates and frames CL_rot_compose >>