ArrayMath.Normalize Method

Returns a range that has indexes from end replaced with offsets from the end of the specified length.

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
public static Range Normalize(
	this Range range,
	int length
)

Parameters

range  Range
The range to normalize.
length  Int32
The length of the collection.

Return Value

Range
A new range with indexes from end replaced with the offset from length.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Range. 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