Method | Description | |
---|---|---|
Add ( |
Add the node to the tree
|
|
Add ( |
||
Build ( int index, List nodes, int start, int end ) : void | ||
CollectAndClear ( int index, List buffer ) : void | ||
EnsureSize ( int index ) : void | ||
GetInRange ( |
Add all nodes within a squared distance of the point to the buffer.
|
|
GetInRangeInternal ( int index, |
||
GetNearest ( |
Closest node to the point which satisfies the constraint
|
|
GetNearestInternal ( int index, |
||
PointKDTree ( ) : System.Collections.Generic | ||
Rebalance ( int index ) : void | ||
Rebuild ( Array nodes, int start, int end ) : void |
Rebuild the tree starting with all nodes in the array between index start (inclusive) and end (exclusive)
|
Method | Description | |
---|---|---|
GetOrCreateList ( ) : Pathfinding.GraphNode[] | ||
MaxAllowedSize ( int numNodes, int depth ) : int | ||
Size ( int index ) : int |
public Add ( |
||
point | ||
index | int | |
depth | int | |
return | void |
public Build ( int index, List nodes, int start, int end ) : void | ||
index | int | |
nodes | List | |
start | int | |
end | int | |
return | void |
public CollectAndClear ( int index, List buffer ) : void | ||
index | int | |
buffer | List | |
return | void |
public GetInRange ( |
||
point | Nodes around this point will be added to the buffer. | |
sqrRadius | long | squared maximum distance in Int3 space. If you are converting from world space you will need to multiply by Int3.Precision:
/// var sqrRadius = (worldSpaceRadius * Int3.Precision) * (worldSpaceRadius * Int3.Precision); |
buffer | List | All nodes will be added to this list. |
return | void |
public GetInRangeInternal ( int index, |
||
index | int | |
point | ||
sqrRadius | long | |
buffer | List | |
return | void |
public GetNearest ( |
||
point | ||
constraint | ||
return |
public GetNearestInternal ( int index, |
||
index | int | |
point | ||
constraint | ||
best | ||
bestSqrDist | long | |
return | void |
public PointKDTree ( ) : System.Collections.Generic | ||
return | System.Collections.Generic |
public Rebuild ( Array nodes, int start, int end ) : void | ||
nodes | Array | |
start | int | |
end | int | |
return | void |