clj-hex-grid
A Clojure library implementing the algorithms specified in http://www.redblobgames.com/grids/hexagons/.
Features
- Angles, size, spacing - Done
- Coordinate systems - To do
- Conversions - Done (offset to/from cube only, no axial)
- Neighbours - Done (cube and offset, no axials, no diagonals)
- Distances - Done (cube and offset coordinates)
- Line drawing - Done (cube coordinates)
- Range - In progress
- Rotation - To do
- Rings - To do
- Field of view - To do
- Hex to pixel - To do
- Pixel to hex - To do
- Rounding - To do
- Map storage - To do
- Wraparound maps - To do
- Pathfinding - Done (cube coordinates)
License
Copyright © 2015 FIXME
Distributed under the Eclipse Public License, the same as Clojure.