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
gridIGrid<TPoint, TCell>The grid in which to look up a value.
pointTPointThe point at which to get the value.
Returns
- TCell
The value at the given point in the grid.
Type Parameters
TPointThe point type of the grid.
TCellThe 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.