Class PointKDTree
Public
Represents a collection of GraphNodes.
It allows for fast lookups of the closest node to a point.
Inner Types
Public Methods
GetInRange
(point, sqrRadius, buffer)
Add all nodes within a squared distance of the point to the buffer.
GetNearest
(point, constraint, distanceSqr)
Closest node to the point which satisfies the constraint and is at most at the given distance.
GetNearestConnection
(point, constraint, maximumSqrConnectionLength)
Closest node to the point which satisfies the constraint.
Rebuild
(nodes, start, end)
Rebuild the tree starting with all nodes in the array between index start (inclusive) and end (exclusive)
Public Static Variables
LeafArraySize
Public
Static
LeafSize
Public
Static
Private/Protected Members
arrayCache
Private
Readonly
comparers
Private
Static
Readonly
largeList
Private
Readonly
numNodes
Private
tree
Private