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
listIList<float>The array to partition.
startintThe first index of the range.
endintThe last index of the range.
Returns
- int
The pivot's final index after partitioning.