package
Version:
v1.0.2
Opens a new window with list of versions in this module.
Published: Jun 10, 2025
License: GPL-3.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Axial struct {
Col, Row int
}
Axial axial coordinates
NewAxial return new axial
Distance return distance between axials
ToCube convert axial to cube
ToPosition return position
type Cube struct {
X, Y, Z int
}
Cube for hexagon map
Distance distance between cubes
ToAxis convert cube to axis
Source Files
¶
Click to show internal directories.
Click to hide internal directories.