Battle Analysis: Hexagon Library

Wargame grid coordinates are used for wargame calculations

map

Each hexagon center is a point on the cartesian grid.

Use geometry to program the hexagon grid calculations  

Use a cartesian coordinate system: a grid with x,y coordinates.

Hexagon Library: hexagon calculators that use the cartesian grid:
  1. Hexagon Map Calculator How to convert pixel (x,y) to hexagon (x,y)
  2. Hexagon Grid Calculator How to move from hexagon (x,y) to hexagon (x,y)
  3. Hexagon Name Calculator How to convert hexagon (x,y) to hexagon name
  4. Line of Sight Algorithm using the cartesian grid
  5. Lines of Communication using the cartesian grid
  6. A* pathfinding using the cartesian grid

Analytic geometry provides:

Use cartesian cordinates.

The labels on hexagons are not coordinates.

The hexagon name is calculated.