rigid_body_motion.qinv

rigid_body_motion.qinv(q, qaxis=- 1)[source]

Quaternion inverse.

Parameters
q: array_like

Array containing quaternions whose inverse is to be computed. Its dtype can be quaternion, otherwise qaxis specifies the axis representing the quaternions.

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 inverse values.