hex grid
Building hex grid by staggering stardard grid
Characteristics:
same distance between each cell’s center and neighbor center
6 immediate neighbor with shared edge
Issues:
Extra run time required to convert global point to hex coordinate
horizontal/vertical orthographic trace lines have different length i.e. 0,2 to 0,0 comparing to 0,0 to 2,0
Convert global point to hex coordinate
1. convert point to nearest rectangular cell
2. check for point in hex, apply different x,y for the 4 corners and even/odd rows