Class Grid3<TCell>
3D implementation of a IGrid<TPoint, TCell>.
public sealed class Grid3<TCell> : AbstractGrid<GridPoint3, TCell>, IGrid<GridPoint3, TCell>, IGrid<GridPoint3>, IExplicitShape<GridPoint3>, IImplicitShape<GridPoint3>, IEnumerable<PointCellPair<GridPoint3, TCell>>, IEnumerable
Type Parameters
TCell
The cell type of this grid.
- Inheritance
-
AbstractGrid<GridPoint3, TCell>Grid3<TCell>
- Implements
-
IGrid<GridPoint3, TCell>
- Inherited Members
- Extension Methods
Constructors
- Grid3(IExplicitShape<GridPoint3>)
Initializes a new instance of the Grid1<TCell> class with the specified shape. Cells are not initialized, they have the default value of type
TCell
.
Properties
- Bounds
Returns a bounding shape that contains this explicit shape.
- this[GridPoint3]
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(GridPoint3)
Determines whether this implicit shape contains the specified point.
See Also
IGrid<TPoint, TCell>