Table of Contents

Method GetOrthogonalNeighbors

Namespace
Gamelogic.Grids2
Assembly
Gamelogic.Grids2.dll

GetOrthogonalNeighbors(GridPoint3)

Gets the "orthogonal" neighbors for the given point, that is, the eight neighbors in the cardinal directions.

public static IEnumerable<GridPoint3> GetOrthogonalNeighbors(GridPoint3 point)

Parameters

point GridPoint3

Returns

IEnumerable<GridPoint3>

Remarks

The term "orthogonal" is used to be consistent with the method in RectPoint, and is meant to mean axis-aligned.