[]
        
(Showing Draft Content)

C1.Util.DX.Vector4.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, 2 for the Z component, and 3 for the W component.

Property Value
Type Description
float

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

Exceptions
Type Condition
ArgumentOutOfRangeException

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