[]
        
(Showing Draft Content)

C1.Util.DX.Vector3.Item

this Property

this[int]

Gets or sets the component at the specified index.

Declaration
public float this[int index] { get; set; }
Parameters
Type Name Description
int index

The index of the component to access. Use 0 for the X component, 1 for the Y component, and 2 for the Z component.

Property Value
Type Description
float

The value of the X, Y, or Z component, depending on the index.

Exceptions
Type Condition
ArgumentOutOfRangeException

Thrown when the index is out of the range [0, 2].