Import in python using from mcutils.utils.spherical import mat2euler
mcutils.utils.spherical.
mat2euler
Converts a rotation matrix to spherical coordinates
see spherical.euler2mat for the relation between the rotation matrix and the euler angles
rot_mat – (…, 3, 3) array
euler angles (phi, theta, psi))