Table of Contents

Method PivotIndex

Namespace
Gamelogic.Extensions.Algorithms
Assembly
Gamelogic.Extensions.dll

PivotIndex(IList<float>, int, int)

Partitions the array around the pivot and returns its final index.

public static int PivotIndex(IList<float> list, int start, int end)

Parameters

list IList<float>

The array to partition.

start int

The first index of the range.

end int

The last index of the range.

Returns

int

The pivot's final index after partitioning.