Expand description

Module for Hex Graph with axial coordinates.

Example

HexGraph<N, E,OddR>

(-1, 2) - (0, 2)        (NW)   NE
    \    /    \            \   /
    (0, 1)  - (1, 1)  (W) -  C -  E
    /    \    /            /   \
(0, 0) - (1, 0)        (SW)     SE

HexGraph<N, E,EvenR>

    (1, 2) - (0, 2)     (NW)  NE
    /    \    /            \   /
(-1, 1) - (0, 1)      (W) -  C -  E
    \    /    \            /   \
    (0, 0) - (1, 0)     (SW)    SE

HexGraph<N, E,OddQ>

     (1, 1)                 N
     / |  \           (NW)  |   NE
(0, 1) | (2, 0)          \  |  /
  |  \ |  /  |              C
  |  (1, 0)  |           /  |  \
  |  /    \  |        (SW)  |  SE
(0, 0)   (2, -1)           (S)

HexGraph<N, E,EvenQ>

(0, 1)   (2, 0)           N
  |  \    /  |      (NW)  |   NE
  |  (1,  0) |         \  |  /
  |  /  |  \ |            C
(0, 0)  | (2, -1)       /  |  \
     \  |  /         (SW)  |  SE
     (1, -1)              (S)

Re-exports

pub use super::shapes::*;
pub use crate::lattice_abstract::shapes::*;

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.