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

Search Results for

    Edit this page

    Method GetPointComponents

    | Edit this page View Source

    GetPointComponents(int)

    Get the point components at the specified index.

    Declaration
    public (float x, float y, float z) GetPointComponents(int index)
    Parameters
    Type Name Description
    int index

    index of the point to retrieve.

    Returns
    Type Description
    (float x, float y, float z)

    The (x, y, z) components of the point at the specified index.

    Remarks

    This method avoids the overhead of creating a Vector3 object, which can be beneficial in performance-critical scenarios.

    Exceptions
    Type Condition
    ArgumentOutOfRangeException

    Thrown when the index is out of range.