pytransform3d.rotations.assert_quaternion_equal#

pytransform3d.rotations.assert_quaternion_equal(q1, q2, *args, **kwargs)[source]#

Raise an assertion if two quaternions are not approximately equal.

Note that quaternions are equal either if q1 == q2 or if q1 == -q2. See numpy.testing.assert_array_almost_equal for a more detailed documentation of the other parameters.

Parameters:
q1array-like, shape (4,)

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

q2array-like, shape (4,)

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

argstuple

Positional arguments that will be passed to assert_array_almost_equal

kwargsdict

Positional arguments that will be passed to assert_array_almost_equal