<< CL_rot_defRotVec Coordinates and frames CL_rot_matrix2angles >>

CelestLab >> Coordinates and frames > CL_rot_interpQuat

CL_rot_interpQuat

Interpolation of quaternions

Calling Sequence

q = CL_rot_interpQuat(t_ref,q_ref,t [,method])

Description

Parameters

t_ref:

Reference times (1xN with N>=2)

q_ref:

Reference quaternions at times t_ref (size N with N>=2)

t:

Requested times (1xP).

method:

(string, optional) Name of the method. Only "slerp" is available. Default is "slerp". (1x1)

q :

Interpolated quaternions at times t. (size P)

Authors

See also

Examples

t_ref = [1:10];
q_ref = CL_rot_angles2quat([3,1,3],[t_ref;t_ref.^2;cos(t_ref)]);
t = [1.5:8.5];
q = CL_rot_interpQuat(t_ref,q_ref,t)

Report an issue
<< CL_rot_defRotVec Coordinates and frames CL_rot_matrix2angles >>