KdTree
verb.core.KdTree<T>
CLASS
A Haxe port of:
k-d Tree JavaScript - V 1.0
https://github.com/ubilabs/kd-tree-javascript
@author Mircea Pricop pricop@ubilabs.net, 2012 @author Martin Kleppe kleppe@ubilabs.net, 2012 @author Ubilabs http://ubilabs.net, 2012 @license MIT License http://www.opensource.org/licenses/mit-license.php
constructor
METHOD
new KdTree<T>(points : undefined, distanceFunction : undefined)
nearest
METHOD
nearest(point : Point, maxNodes : Int, maxDistance : Float) : Array<Pair<KdPoint<T>, Float>>
KdPoint
verb.core.KdPoint<T>
CLASS
A point in a KdTree
constructor
METHOD
new KdPoint<T>(point : undefined, obj : undefined)
point
PROPERTY
point : Point
The point
obj
PROPERTY
obj : T
An arbitrary object to attach
KdNode
verb.core.KdNode<T>
CLASS
A node in a KdTree
constructor
METHOD
new KdNode<T>(kdPoint : KdPoint<T>, dimension : Int, parent : KdNode<T>)
kdPoint
PROPERTY
kdPoint : KdPoint<T>
The point itself
left
PROPERTY
left : KdNode<T>
The left child
right
PROPERTY
right : KdNode<T>
The right child
parent
PROPERTY
parent : KdNode<T>
The parent of the node
dimension
PROPERTY
dimension : Int
The dimensionality of the point