IcoGrid

Library for generating grids of hexagons and pentagons mapped to a sphere.

http://www.haskell.org/haskellwiki/IcoGrid

Latest on Hackage:0.1.2

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

LicenseRef-GPL licensed by Jim Snow
Maintained by Jim Snow

Defines functions for dealing with a type of hexagon grid wrapped around a sphere. The full grid is composed of 20 smaller trianglular grids of hexagons, that fit together as an icosahedron with pentagons at the corners. Each grid cell is assigned an integer value, and we can get a list of the neighbors of a particular cell. We can also ask for a vector in 3d space that is the center of a particular cell. This would be well suited for a game played on a spherical world or a planetary environment simulator.