clean_euler

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

mcutils.utils.spherical.clean_euler(phi, theta, psi)[source]

Finds a set of angles matching the same orientation with

  • phi between -pi and pi

  • theta between 0 and pi

  • psi between -pi and pi

Parameters
  • phi – orientation of the z-axis projection on the x-y plane

  • theta – polar angle (0 for keeping the z-axis in the z-direction, pi/2 for projecting the z-axis onto the x-y plane)

  • psi – rotation of the major dispersion axis around the main fibre orientation

Returns

tuple with new (phi, theta, psi)