Grids v0.1.0
Grids.Hex.Cube
View Source
Documentation for Grids.Hex.Cube
Returns 6 neighbors for hex tile
Creates a hex tile with cube coordinates
Returns 6 neighbors for hex tile
Examples
iex> Grids.Hex.Cube.neighbors(%Cube{})
[%Cube{}, ...]
Creates a hex tile with cube coordinates
Examples
iex> Grids.Hex.Cube.new([0, 0, 0])
%Grids.Hex.Cube{x: 0, y: 0, z: 0}