rotate_atoms

Contents

rotate_atoms#

abtem.atoms.rotate_atoms(atoms, axes='zxz', angles=(0.0, 0.0, 0.0), convention='intrinsic')[source]#

Rotate the positions and cell vectors of atoms using Euler angles.

Parameters:
  • atoms (Atoms) – The atoms object to rotate.

  • axes (str, optional) – The sequence of axes for rotation. Default is “zxz”.

  • angles (tuple[float, float, float], optional) – The Euler angles in radians. Default is (0.0, 0.0, 0.0).

  • convention (str, optional) – The convention for Euler angles. Default is “intrinsic”.

Returns:

The rotated atoms object.

Return type:

Atoms