Method Transform
Transform<TPoint, TCell>(IGrid<TPoint, TCell>, Func<TCell, TCell>)
Transforms the contents of a grid using a given transform.
public static void Transform<TPoint, TCell>(this IGrid<TPoint, TCell> grid, Func<TCell, TCell> transform)
Parameters
gridIGrid<TPoint, TCell>The grid to transform.
transformFunc<TCell, TCell>The transform, called on each point in the grid with the cell at that point as parameter. The result is replaced at that point.
Type Parameters
TPointThe point type of the grid.
TCellThe cell type of the grid.
Transform<TPoint, TCell>(IGrid<TPoint, TCell>, Func<TPoint, TCell, TCell>)
Transforms the contents of a grid using a given transform.
public static void Transform<TPoint, TCell>(this IGrid<TPoint, TCell> grid, Func<TPoint, TCell, TCell> transform)
Parameters
gridIGrid<TPoint, TCell>The grid to transform.
transformFunc<TPoint, TCell, TCell>The transform, called on each point in the grid with the point and cell at that point as parameters. The result is replaced at that point.
Type Parameters
TPointThe point type of the grid.
TCellThe cell type of the grid.