Method GetValue
| Edit this page View SourceGetValue((int x, int y, int z))
Gets the value at the specified 3D index in the grid.
Declaration
public T GetValue((int x, int y, int z) index)
Parameters
| Type | Name | Description |
|---|---|---|
| (int x, int y, int z) | index | The 3D index (x, y, z) of the voxel to retrieve. The index should be within the bounds defined by the grid metadata. |
Returns
| Type | Description |
|---|---|
| T | The value of type |
Implements
Exceptions
| Type | Condition |
|---|---|
| IndexOutOfRangeException | If the provided index is out of bounds for the grid dimensions. |