<< CL_rot_quat2matrix Coordinates and frames CL_rot_rotVect >>

CelestLab >> Coordinates and frames > CL_rot_quatSlerp

CL_rot_quatSlerp

Quaternion interpolation on the unit sphere using Slerp method

Calling Sequence

q = CL_rot_quatSlerp(q1,q2,p)

Description

Parameters

q1 :

Quaternion (size N or 1)

q2 :

Quaternion (size N or 1)

p :

Interpolation parameter (1xN or 1x1). Can be < 0 or > 1.

q :

Interpolated quaternion (size N)

Authors

See also

Examples

q1 = CL_rot_axAng2quat([0;0;1],0.5);
q2 = CL_rot_axAng2quat([1;1;1], 1);

q = CL_rot_quatSlerp(q1,q2,0)  // q = q1
q = CL_rot_quatSlerp(q1,q2,1)  // q = q2
q = CL_rot_quatSlerp(q1,q2,(0:5)/5)
q = CL_rot_quatSlerp([q1,q1,q1],q2,[0.1, 0.2, 0.3])

Report an issue
<< CL_rot_quat2matrix Coordinates and frames CL_rot_rotVect >>