Class AbstractGrid<TPoint, TCell>
Base class of concrete implementations of the IGrid interface.
public abstract class AbstractGrid<TPoint, TCell> : IGrid<TPoint, TCell>, IGrid<TPoint>, IExplicitShape<TPoint>, IImplicitShape<TPoint>, IEnumerable<PointCellPair<TPoint, TCell>>, IEnumerable
Type Parameters
TPoint
The point type of this grid.
TCell
The cell type of this grid.
- Inheritance
-
AbstractGrid<TPoint, TCell>
- Implements
-
IGrid<TPoint, TCell>IGrid<TPoint>IExplicitShape<TPoint>IImplicitShape<TPoint>IEnumerable<PointCellPair<TPoint, TCell>>
- Derived
- Inherited Members
- Extension Methods
Properties
- Bounds
Returns a bounding shape that contains this explicit shape.
- Cells
Returns all the cells of this grid, that is, the values associated with all points in the grid.
- this[TPoint]
Gets or sets the cell at the specified point.
- Points
Gets all the points this shape contains.
Methods
- CloneStructure<TNewCell>()
Returns a grid with exactly the same structure, but potentially holding elements of a different type.
- Contains(TPoint)
Determines whether this implicit shape contains the specified point.
See Also
IGrid<TPoint, TCell>