translate¶
- translate(configuration, indices, du)¶
Translate the elements with indices by the vector du.
- Parameters:
configuration (AtomicConfiguration) – The configuration containing the atoms.
indices (All | sequence of integers) – The indices of the atoms to change.
du (PhysicalQuantity of type length) – The translation vector.
- Returns:
The translated configuration.
- Return type:
AtomicConfiguration