Grids v0.1.0 Grids.Hex.Cube View Source

Documentation for Grids.Hex.Cube

Link to this section Summary

Functions

Returns 6 neighbors for hex tile

Creates a hex tile with cube coordinates

Link to this section Functions

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}