Open csgro opened 8 years ago
I just added the file THexconvert.h with the routines for mapping a position to a hex coordinate system an then to xpol one. The function to use it is added to TReadout::Position2Xpol, a quick test indicates it works, but full test with recon etc is required. Old function PositiontoMatrix is untouched.
Apparently id does not map hexagons in current implementation. Need to find where the bug is. Alternatively, implement a new schema based e.g. on http://www.redblobgames.com/grids/hexagons/