Method GetValue
GetValue<TPoint, TCell>(IGrid<TPoint, TCell>, TPoint)
Gets the value at the specified point.
public static TCell GetValue<TPoint, TCell>(this IGrid<TPoint, TCell> grid, TPoint point)
Parameters
grid
IGrid<TPoint, TCell>The grid in which to look up a value.
point
TPointThe point at which to get the value.
Returns
- TCell
The value at the given point in the grid.
Type Parameters
TPoint
The point type of the grid.
TCell
The cell type of the grid.
Remarks
Grid values are often referred to as cells.
This method is equivalent to getting a value
using the index operator: grid[point]
, but is often
more convenient when building lambda expressions.