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

Search Results for

    Edit this page

    Method SetPointComponents

    | Edit this page View Source

    SetPointComponents(float, float, float, int)

    Set the point components at the specified index.

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

    The X component of the new point.

    float y

    The Y component of the new point.

    float z

    The Z component of the new point.

    int index

    Index of the point to set.

    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.

    | Edit this page View Source

    SetPointComponents((float x, float y, float z), int)

    Set the point components at the specified index.

    Declaration
    public void SetPointComponents((float x, float y, float z) components, int index)
    Parameters
    Type Name Description
    (float x, float y, float z) components

    The (x, y, z) components of the new point.

    int index

    Index of the point to set.

    Remarks

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