mirror

mirror(configuration, indices, normal, u0)

Mirror the elements in rows through the plane given by the surface normal containing the point u0.

Parameters:
  • configuration (AtomicConfiguration) – The configuration containing the atoms.

  • indices (All | sequence of integers) – The indices of the atoms to change.

  • normal (sequence) – The plane normal.

  • u0 (sequence) – A point in the plane.

Returns:

The mirrored configuration.

Return type:

AtomicConfiguration