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