Grids v0.1.0 Grids.Hex.Offset View Source

Documentation for Grids.Hex.Offset

Link to this section Summary

Link to this section Functions

Link to this function

do_neighbors(x, y, orientation, arg4, arg5)

View Source
Link to this function

find_parity(arg1, arg2, atom1, atom2)

View Source

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}