DOTS Geometry
 
Loading...
Searching...
No Matches
NativeSearchExtension Class Reference

Static Public Member Functions

static unsafe int BinarySearch< T > (this NativeArray< T > nativeArray, T value, int min, int max)
 Same as NativeSortExtension BinarySearch, but search can be applied within a range of an array.
 
static unsafe int BinarySearch< T > (this NativeList< T > nativeList, T value, int min, int max)
 Same as NativeSortExtension BinarySearch, but search can be applied within a range of a list.
 

Member Function Documentation

◆ BinarySearch< T >() [1/2]

static unsafe int BinarySearch< T > ( this NativeArray< T > nativeArray,
T value,
int min,
int max )
static

Same as NativeSortExtension BinarySearch, but search can be applied within a range of an array.

Template Parameters
T
Parameters
nativeArray
value
min
max
Returns
Type Constraints
T :unmanaged 
T :IComparable<T> 

◆ BinarySearch< T >() [2/2]

static unsafe int BinarySearch< T > ( this NativeList< T > nativeList,
T value,
int min,
int max )
static

Same as NativeSortExtension BinarySearch, but search can be applied within a range of a list.

Template Parameters
T
Parameters
nativeList
value
min
max
Returns
Type Constraints
T :unmanaged 
T :IComparable<T>