/HexGrid

A logical hex-grid implementation based on Amit Patel's examples

Primary LanguageC#MIT LicenseMIT

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.