Méthode | 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)
|
Méthode | Description | |
---|---|---|
GetOrCreateList ( ) : Pathfinding.GraphNode[] | ||
MaxAllowedSize ( int numNodes, int depth ) : int | ||
Size ( int index ) : int |
public Add ( |
||
point | ||
index | int | |
depth | int | |
Résultat | void |
public Build ( int index, List nodes, int start, int end ) : void | ||
index | int | |
nodes | List | |
start | int | |
end | int | |
Résultat | void |
public CollectAndClear ( int index, List buffer ) : void | ||
index | int | |
buffer | List | |
Résultat | 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. |
Résultat | void |
public GetInRangeInternal ( int index, |
||
index | int | |
point | ||
sqrRadius | long | |
buffer | List | |
Résultat | void |
public GetNearest ( |
||
point | ||
constraint | ||
Résultat |
public GetNearestInternal ( int index, |
||
index | int | |
point | ||
constraint | ||
best | ||
bestSqrDist | long | |
Résultat | void |
public PointKDTree ( ) : System.Collections.Generic | ||
Résultat | System.Collections.Generic |
public Rebuild ( Array nodes, int start, int end ) : void | ||
nodes | Array | |
start | int | |
end | int | |
Résultat | void |