mat2euler

Import in python using from mcot.core.spherical import mat2euler

mcot.core.spherical.mat2euler(rot_mat)[source]

Converts a rotation matrix to spherical coordinates

see spherical.euler2mat for the relation between the rotation matrix and the euler angles

Parameters:rot_mat – (…, 3, 3) array
Returns:euler angles (phi, theta, psi))