A logical hex-grid implementation based on Amit Patel's examples
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.
HexGrid
HexGridExample
HexGridTest
.gitattributes
.gitignore
HexGrid.sln
LICENSE
README.md
icon.png dev Feb 7, 2017

README.md

HexGrid

A logical hex-grid implementation based on Amit Patel's examples at http://www.redblobgames.com/grids/hexagons/.

Overview

Gives mathematical support for various operations over hex-tiled map. Like:

  • if I click on this point, which hex tile I have clicked on
  • drawing a line in hex-tiled space
  • finding a neighbour in hex-tiled space
  • I have a hex with this coordinates, where will be its center and vertexes

Nuget

https://www.nuget.org/packages/Barbar.HexGrid/

Install-Package Barbar.HexGrid

License

Licensed under the MIT License. See the LICENCE file for more information.