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), 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
    IGrid<T>.SetValue((int x, int y, int z), T)
    Exceptions
    Type Condition
    IndexOutOfRangeException

    if index is out of bounds

    | Edit this page View Source

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

    if input array length does not match grid size