Grid3DT Class |
Namespace: Archon.SwissArmyLib.Collections
public class Grid3D<T>
The Grid3DT type exposes the following members.
Name | Description | |
---|---|---|
Grid3DT(Int32, Int32, Int32) |
Creates a new 3D Grid with the specified width, height and depth.
Cells will be initialized with their type's default value.
| |
Grid3DT(Int32, Int32, Int32, T) |
Creates a new 3D Grid with the specified width, height and depth.
Cells will be initialized with the value of defaultValue.
|
Name | Description | |
---|---|---|
DefaultValue |
Gets or sets the default values used for clearing or initializing new cells.
| |
Depth |
Gets the depth (number of layers) of the grid.
| |
Height |
Gets the height (number of rows) of the grid.
| |
Item |
Gets or sets the value of the cell located at the specified coordinate.
| |
Width |
Gets the width (number of columns) of the grid.
|
Name | Description | |
---|---|---|
Clear |
Clears the grid, setting every cell to DefaultValue.
| |
Clear(T) |
Clears the grid, setting every cell to the given value.
| |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Fill |
Fills everything in the specified cube to the given value.
| |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
Get |
Gets the value of the cell located at the specified coordinate.
| |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Resize |
Resizes the Grid to the given size, keeping data the same but any new cells will be set to DefaultValue.
Growing the grid will allocate new arrays, shrinking will not.
| |
Set |
Sets the value of the cell located at the specified coordinate.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |