pytransform3d.rotations.check_rotor#

pytransform3d.rotations.check_rotor(rotor)[source]#

Input validation of rotor.

Parameters:
rotorarray-like, shape (4,)

Rotor: (a, b_yz, b_zx, b_xy)

Returns:
rotorarray, shape (4,)

Validated rotor (with unit norm): (a, b_yz, b_zx, b_xy)

Raises:
ValueError

If input is invalid