ArrayMath.ToIndex Method

Converts a Index to a regular 0-based index.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public static int ToIndex(
	this Index index,
	int length
)

Parameters

index  Index
The index to convert.
length  Int32
The length of the dimension the index applies to.

Return Value

Int32
The integer index corresponding to index.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Index. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also