Method GetOrthogonalNeighbors
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
Remarks
The term "orthogonal" is used to be consistent with the method in RectPoint, and is meant to mean axis-aligned.