Returns the surrounding positions. Diagonals are optional.
the x reference position.
the y reference position.
if true, includes diagonals.
how distant if the surrounding positions from the given position.
Returns the surrounding positions.
Returns the surrounding positions. Diagonals are optional.