euler_from_rotationmatrix#

euler_from_rotationmatrix(rotation_matrix, convention='zyx')[source]#

Convert a rotation matrix to euler angles.

Parameters:
rotation_matrixNDArray

A 2 x 2 or 3 x 3 rotation matrix in zyx form.

conventionstr, optional

Euler angle convention, zyx by default.

Returns:
Tuple

The generate euler angles in degrees