pytransform3d.rotations
.assert_compact_axis_angle_equal#
- pytransform3d.rotations.assert_compact_axis_angle_equal(a1, a2, *args, **kwargs)[source]#
Raise an assertion if two axis-angle are not approximately equal.
Usually we assume that the angle is within [0, pi). However, this function ignores this constraint and will normalize the representations before comparison. See numpy.testing.assert_array_almost_equal for a more detailed documentation of the other parameters.
- Parameters:
- a1array-like, shape (3,)
Axis of rotation and rotation angle: angle * (x, y, z)
- a2array-like, shape (3,)
Axis of rotation and rotation angle: angle * (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