rigid_body_motion.qinterp

rigid_body_motion.qinterp(q, t_in, t_out, axis=0, qaxis=- 1)[source]

Quaternion interpolation.

Parameters
q: array_like

Array containing quaternions to interpolate. Its dtype can be quaternion, otherwise qaxis specifies the axis representing the quaternions.

t_in: array_like

Array of current sampling points of q.

t_out: array_like

Array of desired sampling points of q.

axis: int, default 0

Axis along which the quaternions are interpolated.

qaxis: int, default -1

If q is not quaternion dtype, axis of the quaternion array representing the coordinates of the quaternions.

Returns
qi: ndarray

A new array containing the interpolated values.