treams.Lattice.hexagonal¶
- classmethod Lattice.hexagonal(pitch, height=None, alignment=None)¶
Create a hexagonal lattice.
The lattice is two-dimensional if no height is specified else it is three-dimensional
- Parameters:
pitch (float) – Lattice constant.
height (float, optional) – Separation along the third axis for a three-dimensional lattice.
alignment (str, optional) – Alignment of the two-dimensional lattice in the three-dimensional space. Defaults to either ‘xy’ or ‘xyz’ in the two- or three-dimensional case, respectively.
- Returns:
Lattice