treams.Lattice.square¶
- classmethod Lattice.square(pitch, alignment=None)¶
Create a two-dimensional square lattice.
- Parameters:
pitch (float) – Lattice constant.
alignment (str, optional) – Alignment of the two-dimensional lattice in the three-dimensional space. Defaults to ‘xy’.
- Returns:
Lattice