rotation_matrix_to_euler

rotation_matrix_to_euler#

abtem.atoms.rotation_matrix_to_euler(R, axes='xyz', convention='intrinsic', eps=1e-06)[source]#

Convert a Cartesian rotation matrix to Euler angles.

Parameters:
  • R (np.ndarray) – Rotation array of dimension 3x3.

  • axes (str) – String representation of Cartesian axes.

  • eps (float) – Components of the rotation matrix whose magnitude is below this value are ignored.

Returns:

angles – Euler angles corresponding to the given rotation matrix.

Return type:

tuple