Hexagon.png, juin 2021

This C++ application is used to demonstrate how to quicly identify a cell in an hexagonal mesh.

The algorithm is only based on line equations which describe the hexagonal mesh. It is fast and simple.

The attached package contains the source code for two different graphical implementations. The first one is made with the Gtk library and the other with my own small library (Gfx).

The "Schemas" directory contains few quick draws to illustrate how it is done.

Enjoy !

Buzz