Skip to main content

LATTICE_STEPS

Constant LATTICE_STEPS 

Source
pub const LATTICE_STEPS: [(i32, i32); 6];
Expand description

The six primitive Eisenstein lattice vectors in (a, b) coordinates.

These are the unit steps in the Eisenstein integer lattice:

IndexVectorDescription
0+1a += 1
1-1 + ωa -= 1, b += 1
2b -= 1
3-1a -= 1
41 - ωa += 1, b -= 1
5b += 1