This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# copyright 2010 Eric Gradman | |
# free to use for any purpose, with or without attribution | |
# from an algorithm by James McNeill at | |
# http://playtechs.blogspot.com/2007/04/hex-grids.html | |
# the center of hex (0,0) is located at cartesian coordinates (0,0) | |
import numpy as np | |
# R ~ center of hex to edge |