grid_space library

Common classes to convert between square grids and hexagonal grids.

Classes

Grid<U extends num>
HexagonalGrid<U extends num>
HexagonTile
ShiftPoint<U extends num>
SquareGrid<U extends num>
SquareTile
Tile
TiledGrid<U extends num>
UnclampedGrid<U extends num>

Extensions

NumExtension on num
PointExtension on Point<P>

Functions

hexOffset(num x) double
A hexagon outline wave function spanning a period of 2 units.