Grids v0.1.0 Grids.Hex View Source

Documentation for Grids.Hex

Link to this section Summary

Link to this section Functions

Link to this function

do_new(arg1, coordinates, options)

View Source

Returns 6 neighbors for hex tile

Examples

iex> Grids.Hex.neighbors(%Cube{})
[%Cube{}, ...]
Link to this function

new(system, coordinates, options \\ %{})

View Source

Creates a hex tile

Examples

iex> Grids.Hex.new(:cube, [0, 0, 0])
%Grids.Hex.Cube{x: 0, y: 0, z: 0}