Click or drag to resize

Grid3DT Class

A generic three-dimensional grid.
Inheritance Hierarchy
SystemObject
  Archon.SwissArmyLib.CollectionsGrid3DT

Namespace:  Archon.SwissArmyLib.Collections
Assembly:  Archon.SwissArmyLib (in Archon.SwissArmyLib.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class Grid3D<T>
Request Example View Source

Type Parameters

T
The type of content cells can contain.

The Grid3DT type exposes the following members.

Constructors
  NameDescription
Public methodGrid3DT(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.
Public methodGrid3DT(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.
Top
Properties
  NameDescription
Public propertyDefaultValue
Gets or sets the default values used for clearing or initializing new cells.
Public propertyDepth
Gets the depth (number of layers) of the grid.
Public propertyHeight
Gets the height (number of rows) of the grid.
Public propertyItem
Gets or sets the value of the cell located at the specified coordinate.
Public propertyWidth
Gets the width (number of columns) of the grid.
Top
Methods
  NameDescription
Public methodClear
Clears the grid, setting every cell to DefaultValue.
Public methodClear(T)
Clears the grid, setting every cell to the given value.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodFill
Fills everything in the specified cube to the given value.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGet
Gets the value of the cell located at the specified coordinate.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodResize
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.
Public methodSet
Sets the value of the cell located at the specified coordinate.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also