Module lattice_graph::hex::axial_based
source · [−]Expand description
Module for Hex Graph with axial coordinates.
Example
(-1, 2) - (0, 2) (NW) NE
\ / \ \ /
(0, 1) - (1, 1) (W) - C - E
/ \ / / \
(0, 0) - (1, 0) (SW) SE
(1, 2) - (0, 2) (NW) NE
/ \ / \ /
(-1, 1) - (0, 1) (W) - C - E
\ / \ / \
(0, 0) - (1, 0) (SW) SE
(1, 1) N
/ | \ (NW) | NE
(0, 1) | (2, 0) \ | /
| \ | / | C
| (1, 0) | / | \
| / \ | (SW) | SE
(0, 0) (2, -1) (S)
(0, 1) (2, 0) N
| \ / | (NW) | NE
| (1, 0) | \ | /
| / | \ | C
(0, 0) | (2, -1) / | \
\ | / (SW) | SE
(1, -1) (S)
Re-exports
Structs
Axial based coordinates for hex graph.
Shape for Axial based coordinates.
Type Definitions
Shape for Axial based coordinates with const size. This is ZST.
Coordinate for Hex Graph with axial coordinates.
Directed Hex Graph with axial coordinates.
Directed Hex Graph with axial coordinates.
Hex Graph with axial coordinates.
Hex Graph with axial coordinates.
Hex Graph with axial coordinates with e-w loop.
Hex Graph with axial coordinates with e-w loop.