euler_to_rotation

euler_to_rotation#

abtem.atoms.euler_to_rotation(ai, aj, ak, axes='xyz', convention='intrinsic')[source]#

Convert sequence of Euler angles to Cartesian rotation matrix.

Parameters:
  • ai (float) – First Euler angle.

  • aj (float) – Second Euler angle.

  • ak (float) – Third Euler angle.

  • axes (str, optional) – String representation of the axes of rotation. Default is “xyz”.

  • convention (str, optional) – Convention for rotation order. Default is “intrinsic”.

Returns:

R – 3x3 rotation matrix

Return type:

ndarray