Search Results for

    Show / Hide Table of Contents

    Struct UniformArray3D<T>

    A uniform three-dimensional array.

    Implements
    System.IDisposable
    Namespace: GDX.Collections.Generic
    Syntax
    public struct UniformArray3D<T> : IDisposable
    Type Parameters
    Name Description
    T

    Type of objects.

    Constructors

    | Improve this Doc View Source

    UniformArray3D(Int32)

    Create a UniformArray3D<T> with a uniform dimensional length.

    Declaration
    public UniformArray3D(int stride)
    Parameters
    Type Name Description
    System.Int32 stride

    X length, Y length and Z length will all be set to this value.

    Fields

    | Improve this Doc View Source

    Array

    The backing Array.

    Declaration
    public T[] Array
    Field Value
    Type Description
    T[]
    | Improve this Doc View Source

    Length

    The length of Array.

    Declaration
    public readonly int Length
    Field Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    Stride

    The stride of each dimensional segment in Array.

    Declaration
    public readonly int Stride
    Field Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    StrideSquared

    Stores a cached copy of the stride squared.

    Declaration
    public readonly int StrideSquared
    Field Value
    Type Description
    System.Int32

    Properties

    | Improve this Doc View Source

    Item[Int32, Int32, Int32]

    Access a specific location in the voxel.

    Declaration
    public T this[int x, int y, int z] { get; set; }
    Parameters
    Type Name Description
    System.Int32 x

    X location index.

    System.Int32 y

    Y location index.

    System.Int32 z

    Z location index.

    Property Value
    Type Description
    T
    Remarks

    x + WIDTH * (y + DEPTH * z)

    | Improve this Doc View Source

    Item[int3]

    Access a specific location in the voxel.

    Declaration
    public T this[int3 index] { get; set; }
    Parameters
    Type Name Description
    Unity.Mathematics.int3 index

    A three-dimensional index.

    Property Value
    Type Description
    T

    Methods

    | Improve this Doc View Source

    Dispose()

    Properly dispose of the UniformArray3D<T>.

    Declaration
    public void Dispose()
    | Improve this Doc View Source

    GetFromIndex(Int32)

    Get the three-dimensional index of a flat array index.

    Declaration
    public int3 GetFromIndex(int index)
    Parameters
    Type Name Description
    System.Int32 index

    A flat array index.

    Returns
    Type Description
    Unity.Mathematics.int3

    A three-dimensional voxel index.

    | Improve this Doc View Source

    GetFromIndex(Int32, Int32, Int32)

    Get the three-dimensional index of a flat array index.

    Declaration
    public static int3 GetFromIndex(int index, int stride, int strideSquared)
    Parameters
    Type Name Description
    System.Int32 index

    A flat array index.

    System.Int32 stride

    The predetermined length of an axis.

    System.Int32 strideSquared

    The squared value of stride.

    Returns
    Type Description
    Unity.Mathematics.int3

    A three-dimensional voxel index.

    Implements

    System.IDisposable
    • Improve this Doc
    • View Source
    In This Article
    Back to top Built on 2024-01-01 against 1f69a68.
    Generated by Dox+DocFX.