Method SetValue
| Edit this page View SourceSetValue((int x, int y, int z), Occupancy)
Set occupancy value at given grid index.
Declaration
public void SetValue((int x, int y, int z) index, Occupancy value)
Parameters
| Type | Name | Description |
|---|---|---|
| (int x, int y, int z) | index | grid index (x,y,z) |
| Occupancy | value | occupancy value to set |
Implements
Exceptions
| Type | Condition |
|---|---|
| IndexOutOfRangeException | if index is out of bounds |
SetValue(ReadOnlySpan<Occupancy>)
Set occupancy values from an existing flat array (row-major order).
Declaration
public void SetValue(ReadOnlySpan<Occupancy> values)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<Occupancy> | values | input array (length must be NxNyNz) |
Implements
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | if input array length does not match grid size |