Table of Contents

Method GetOrthogonalNeighbors

Namespace
Gamelogic.Grids2
Assembly
Gamelogic.Grids2.dll

GetOrthogonalNeighbors(GridPoint2)

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

public static IEnumerable<GridPoint2> GetOrthogonalNeighbors(GridPoint2 point)

Parameters

point GridPoint2

Returns

IEnumerable<GridPoint2>

Remarks

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