Method SetValue
| Edit this page View SourceSetValue((int x, int y, int z), float)
Set distance value at given grid index.
Declaration
public void SetValue((int x, int y, int z) index, float value)
Parameters
| Type | Name | Description |
|---|---|---|
| (int x, int y, int z) | index | |
| float | value |
Implements
| Edit this page View SourceSetValue(ReadOnlySpan<float>)
Set distance values from an existing flat array (row-major order).
Declaration
public void SetValue(ReadOnlySpan<float> values)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<float> | values | Flat array of distance values (length must match NxNyNz). |
Implements
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | Thrown if lengths do not match. |