hex-world
Preparing search index...
offsetNeighbor
Function offsetNeighbor
offsetNeighbor
(
col
:
number
,
row
:
number
,
direction
:
number
,
)
:
{
col
:
number
;
row
:
number
}
Returns the offset {col, row} of the neighbour of (col, row) in the given direction (0–5).
Parameters
col
:
number
row
:
number
direction
:
number
Returns
{
col
:
number
;
row
:
number
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
hex-world
Loading...
Returns the offset {col, row} of the neighbour of (col, row) in the given direction (0–5).