Crate bestagon

Source

Modules§

cartesian
distance
grid_line
hex_range
lerp
neighbours
round

Structs§

EdgeAx
An edge represents the edge between two hex faces. To get the coordinates for an edge, you would want to use the average of the coordinates of the two hexes that touch it. Since we use integers, we cannot use the average so instead just use the sum (in this case the average times 2).
FEdgeAx
FHexAx
FHexCb
FNodeAx
HexAx
HexCb
NodeAx

Traits§

Edge
A struct can be considered and Edge if it implements a number of other traits and this traits provides default implementations for some behaviour.
Hex
A Hex represents the face of a single hexagon in the grid.
Node
A node is shared by three edges, and by three hexes. It is the point that connects them.