[]
        
(Showing Draft Content)

C1.Util.DX.Vector2.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 and 1 for the Y component.

Property Value
Type Description
float

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

Exceptions
Type Condition
ArgumentOutOfRangeException

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