Hexagonal Grid
Published:
In this blog, I’ll provide an implementation of a hexagonal grid. The creation of the four different types of hexagonal grids is shown in the following figure. I’ll also show how to retrieve a grid cell’s coordinates given a window coordinate in pixel space which is useful for mouse interaction.