pytransform3d.rotations.q_conj

pytransform3d.rotations.q_conj(q)[source]

Conjugate of quaternion.

The conjugate of a unit quaternion inverts the rotation represented by this unit quaternion. The conjugate of a quaternion q is often denoted as q*.

Parameters
qarray-like, shape (4,)

Unit quaternion to represent rotation: (w, x, y, z)

Returns
q_carray-like, shape (4,)

Conjugate (w, -x, -y, -z)

Examples using pytransform3d.rotations.q_conj