Version

Index(Int32,Int32,Int32) Method

Returns a Vector of evenly spaced indices from start to end.
Syntax
'Declaration
 
Public Overloads Shared Function Index( _
   ByVal start As Integer, _
   ByVal space As Integer, _
   ByVal end As Integer _
) As Vector
public static Vector Index( 
   int start,
   int space,
   int end
)

Parameters

start
The first element of the Vector.
space
The spacing between the elements.
end
An upperbound on the last element of the Vector.

Return Value

A Vector of evenly spaced indices.
Exceptions
ExceptionDescription
System.ArgumentException Occurs when either start or end is less than 0.
System.ArgumentExceptionOccurs when space is equal to 0 and start does not equal end.
System.ArgumentException Occurs when space is positive but start is greater than end.
System.ArgumentException Occurs when space is negative but start is less than end.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also