Click or drag to resize

GridExtensionsGetNeighbors Method

Overload List
  NameDescription
Public methodStatic memberGetNeighborsTCell, TPoint(IGridTCell, TPoint, TPoint)
Only return neighbors of the point that are inside the grid, as defined by Contains.
Public methodStatic memberGetNeighborsTCell, TPoint(IGridTCell, TPoint, TPoint, FuncTCell, Boolean)
Only return neighbors of the point that are inside the grid, as defined by IsInside, whose associated cells also satisfy the predicate includeCell. It is equivalent to GetNeighbors(point).Where(p => includeCell(grid[p])
Public methodStatic memberGetNeighborsTCell, TPoint(IGridTCell, TPoint, TPoint, FuncTPoint, Boolean)
Only return neighbors of the point that are inside the grid, as defined by IsInside, that also satisfies the predicate includePoint. It is equivalent to GetNeighbors(point).Where(includePoint).
Top
See Also