tess
is a library for tessalating hexagons into grids. It provides basic
functionality such as converting hex coordinates to pixel coordinates and vice
versa, or calculating a set of hex cooridinates within a radius from a certain
point. The library is largely inspired by Amit Patel's
blog post on the matter.
tess
is a template library, so it may be that the easiest way to install it is
just to copy the header files into your project's include directory. You can
also install it via cmake:
$ git clone https://github.com/josiest/tess.git && cd tess
$ mkdir build && cd build
$ cmake ..
$ sudo cmake --install .