项目作者: erinpentecost

项目描述 :
Hexagonal grid math library.
高级语言: Go
项目地址: git://github.com/erinpentecost/hexcoord.git
创建时间: 2018-09-02T22:57:33Z
项目社区:https://github.com/erinpentecost/hexcoord

开源协议:MIT License

下载


hex logo

Go Report Card
Travis CI
GoDoc

hex is a Go implementation of hexagonal grid math based on amitp’s Hexagonal Grids articles. This package focuses on hexagonal grid math, including:

  • Generating sets of hexes programmatically in common patterns.
  • Compositing sets of hexes with unions, intersections, and subtractions (constructive solid geometry).
  • Multithreaded A* pathing in a hex grid.
  • Fast intersection testing.
  • Super naive drawing package! This isn’t performant; it’s to help you visualize what’s going on.
  1. import (
  2. // Base library
  3. "github.com/erinpentecost/hex"
  4. // For pathfinding
  5. "github.com/erinpentecost/hex/path"
  6. // For constructive solid geometry
  7. "github.com/erinpentecost/hex/area"
  8. )

hex map

References