Documentation ¶
Overview ¶
Package grid is used to generate grid data. include square and hexagon.
Index ¶
Constants ¶
View Source
const ( // Angle of sin 60 = 0.866025403785 Sin60 = 0.866025403785 Cos60 = 0.5 )
const ...
Variables ¶
This section is empty.
Functions ¶
func HexagonGrid ¶
HexagonGrid Draw a grid according to the distance, including the given area
Types ¶
Click to show internal directories.
Click to hide internal directories.