ZLab.Discrete ZLab.Discrete
ZLab.Discrete ZLab.Discrete
Developed by Zeke Zhang

Search Results for

    Edit this page

    Method SetValue

    | Edit this page View Source

    SetValue((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
    IGrid<T>.SetValue((int x, int y, int z), T)
    | Edit this page View Source

    SetValue(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
    IGrid<T>.SetValue(ReadOnlySpan<T>)
    Exceptions
    Type Condition
    ArgumentException

    Thrown if lengths do not match.