An open API service indexing awesome lists of open source software.

https://github.com/andeemarks/clj-hex-grid

A basic Clojure library for working with hexagonal grids (inspired by http://www.redblobgames.com/grids/hexagons/)
https://github.com/andeemarks/clj-hex-grid

Last synced: 3 months ago
JSON representation

A basic Clojure library for working with hexagonal grids (inspired by http://www.redblobgames.com/grids/hexagons/)

Awesome Lists containing this project

README

          

# clj-hex-grid

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

[![Build Status](https://snap-ci.com/andeemarks/clj-hex-grid/branch/master/build_image)](https://snap-ci.com/andeemarks/clj-hex-grid/branch/master)

## Features

1. Angles, size, spacing - Done
1. Coordinate systems - To do
1. Conversions - Done (offset to/from cube only, no axial)
1. Neighbours - Done (cube and offset, no axials, no diagonals)
1. Distances - Done (cube and offset coordinates)
1. Line drawing - Done (cube coordinates)
1. Range - In progress
1. Rotation - To do
1. Rings - To do
1. Field of view - To do
1. Hex to pixel - To do
1. Pixel to hex - To do
1. Rounding - To do
1. Map storage - To do
1. Wraparound maps - To do
1. Pathfinding - Done (cube coordinates)

## License

Copyright © 2015 FIXME

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