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

Search Results for

    Edit this page

    Method GetValue

    | Edit this page View Source

    GetValue((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 T stored at the specified index in the grid.

    Implements
    IGrid<T>.GetValue((int x, int y, int z))
    Exceptions
    Type Condition
    IndexOutOfRangeException

    If the provided index is out of bounds for the grid dimensions.