Battle Analysis: Hexagon Name Calculator

 

The Hexagon Name Calculator

As it turns out, calculating the hexagon name is easy math!

 

 

map
map
 

Avalon Hill experimental coordinate systems. The second coordinate follows along a 60 ° axis.

Hexagons on a wargame map are identified with a label. These hexagon labels act just like a street address.

Houses have a house number counting from the edge of the street combined with the street number.

Hexagon labels have a hexagon number counting from the map edge along a column or row with the column or row sequence number.

For example, the hexagon label of B04 or 0204 may indicate the 4th hexagon counting down from the top edge of the 2nd column.

GIS GeoCoding converts addresses into geographic coordinates to be placed on a map.

Just like GeoCoding, the 'Hexagon Name Calculator' converts the hexagon address into coordinates to be placed on a map.

Note: The hexagon name is NOT a coordinate.

As the mouse moves, the hexagon point coordinate is calculated from the pixels on the map.

The Hexagon Grid is a simple cartesian x,y coordinate system used for wargame calculations.

The hexagon name is then calculated from the hexagon point coordinate (x,y).

hexagon point coordinate (x,y) → hexagon name

hexagon name → hexagon point coordinate (x,y)

The first map uses a 0101 naming system where the first 2 digits is the column index and the last 2 are the row index. In this system, the even column hexagons are offset.

The second map uses a G4 naming system where the first letters are the column index and the last numbers are the row index of the D column at a 60 degree angle.