Table of Contents

Method ToGrid

Namespace
Gamelogic.Grids2
Assembly
Gamelogic.Grids2.dll

ToGrid<TCell>(IExplicitShape<int>)

Creates a new grid in the given shape.

public static IGrid<int, TCell> ToGrid<TCell>(this IExplicitShape<int> shape)

Parameters

shape IExplicitShape<int>

The shape of the new grid.

Returns

IGrid<int, TCell>

Type Parameters

TCell

The cell type of the grid.

ToGrid<TCell>(IExplicitShape<GridPoint2>)

Creates a new grid in the given shape.

public static IGrid<GridPoint2, TCell> ToGrid<TCell>(this IExplicitShape<GridPoint2> shape)

Parameters

shape IExplicitShape<GridPoint2>

The shape of the new grid.

Returns

IGrid<GridPoint2, TCell>

Type Parameters

TCell

The cell type of the grid.

ToGrid<TCell>(IExplicitShape<GridPoint3>)

Creates a new grid in the given shape.

public static IGrid<GridPoint3, TCell> ToGrid<TCell>(this IExplicitShape<GridPoint3> shape)

Parameters

shape IExplicitShape<GridPoint3>

The shape of the new grid.

Returns

IGrid<GridPoint3, TCell>

Type Parameters

TCell

The cell type of the grid.