mat2euler

Import in python using from mcutils.utils.spherical import mat2euler

mcutils.utils.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))