Generic interface for different types of quadtrees (sparse, dense, etc.) to exchange data structures within Jobs. More...
Public Member Functions | |
void | Clear () |
float3 | GetBottomLeftPosition () |
bool | GetCell (float3 position, out uint code) |
int2 | GetCellCoordinates (float3 position) |
JobHandle | GetCellsInRadii (NativeArray< float2 > centers, NativeArray< float > radii, ref NativeParallelHashSet< uint > result, JobHandle dependsOn, int innerLoopBatchCount=1) |
JobHandle | GetCellsInRadius (float2 center, float radius, ref NativeList< uint > result, JobHandle dependsOn) |
JobHandle | GetCellsInRectangle (Rect rect, ref NativeList< uint > result, JobHandle dependsOn) |
JobHandle | GetCellsInRectangles (NativeArray< Rect > rectangles, ref NativeParallelHashSet< uint > result, JobHandle dependsOn, int innerLoopBatchCount=1) |
NativeParallelMultiHashMap< uint, T > | GetDataBuckets () |
int | GetMaxDepth () |
NativeList< QuadtreeNode > | GetNodes () |
QuadtreeNode * | GetRoot () |
float2 | GetScale () |
void | Insert (float3 position, T value) |
bool | Remove (float3 position, T value) |
bool | Update (T value, float3 oldPosition, float3 newPosition) |
Properties | |
int | Count [get] |
bool | IsCreated [get] |
Generic interface for different types of quadtrees (sparse, dense, etc.) to exchange data structures within Jobs.
T |
T | : | unmanaged |
void Clear | ( | ) |
Implemented in NativeDenseQuadtree< T >, and NativeSparseQuadtree< T >.
bool GetCell | ( | float3 | position, |
out uint | code ) |
Implemented in NativeDenseQuadtree< T >, and NativeSparseQuadtree< T >.
int2 GetCellCoordinates | ( | float3 | position | ) |
Implemented in NativeDenseQuadtree< T >, and NativeSparseQuadtree< T >.
JobHandle GetCellsInRadii | ( | NativeArray< float2 > | centers, |
NativeArray< float > | radii, | ||
ref NativeParallelHashSet< uint > | result, | ||
JobHandle | dependsOn, | ||
int | innerLoopBatchCount = 1 ) |
Implemented in NativeDenseQuadtree< T >, and NativeSparseQuadtree< T >.
JobHandle GetCellsInRadius | ( | float2 | center, |
float | radius, | ||
ref NativeList< uint > | result, | ||
JobHandle | dependsOn ) |
Implemented in NativeDenseQuadtree< T >, and NativeSparseQuadtree< T >.
JobHandle GetCellsInRectangle | ( | Rect | rect, |
ref NativeList< uint > | result, | ||
JobHandle | dependsOn ) |
Implemented in NativeDenseQuadtree< T >, and NativeSparseQuadtree< T >.
JobHandle GetCellsInRectangles | ( | NativeArray< Rect > | rectangles, |
ref NativeParallelHashSet< uint > | result, | ||
JobHandle | dependsOn, | ||
int | innerLoopBatchCount = 1 ) |
Implemented in NativeDenseQuadtree< T >, and NativeSparseQuadtree< T >.
void Insert | ( | float3 | position, |
T | value ) |
Implemented in NativeDenseQuadtree< T >, and NativeSparseQuadtree< T >.
bool Remove | ( | float3 | position, |
T | value ) |
Implemented in NativeDenseQuadtree< T >, and NativeSparseQuadtree< T >.
bool Update | ( | T | value, |
float3 | oldPosition, | ||
float3 | newPosition ) |
Implemented in NativeDenseQuadtree< T >, and NativeSparseQuadtree< T >.