Method GetPointComponents
| Edit this page View SourceGetPointComponents(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. |