amep.utils.quaternion_conjugate#

amep.utils.quaternion_conjugate(quat: ndarray)#

Calculates the conjugated quaternion.

Parameters:

quat (np.ndarray) – 4d quaternion that will be conjugated. Shapes (4,) or (N,4,) allowed.

Returns:

Conjugated quaternion.

Return type:

np.ndarray