Click or drag to resize
Accord.NET (logo)

Vector3MaxIndex Property

Returns index of the coordinate with maximum value.

Namespace:  Accord.Math
Assembly:  Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax
public int MaxIndex { get; }
Request Example View Source

Property Value

Type: Int32
Remarks

Returns index of the coordinate, which has the maximum value - 0 for X, 1 for Y or 2 for Z.

Note Note
If there are multiple coordinates which have the same maximum value, the property returns smallest index.

See Also