A basic Clojure library for working with hexagonal grids (inspired by http://www.redblobgames.com/grids/hexagons/)
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
doc
src/clj_hex_grid
test/clj_hex_grid
.gitignore
LICENSE
README.md
project.clj

README.md

clj-hex-grid

A Clojure library implementing the algorithms specified in http://www.redblobgames.com/grids/hexagons/.

Build Status

Features

  1. Angles, size, spacing - Done
  2. Coordinate systems - To do
  3. Conversions - Done (offset to/from cube only, no axial)
  4. Neighbours - Done (cube and offset, no axials, no diagonals)
  5. Distances - Done (cube and offset coordinates)
  6. Line drawing - Done (cube coordinates)
  7. Range - In progress
  8. Rotation - To do
  9. Rings - To do
  10. Field of view - To do
  11. Hex to pixel - To do
  12. Pixel to hex - To do
  13. Rounding - To do
  14. Map storage - To do
  15. Wraparound maps - To do
  16. Pathfinding - Done (cube coordinates)

License

Copyright © 2015 FIXME

Distributed under the Eclipse Public License, the same as Clojure.