Class KdTreeExtensions
Extensions methods for the KdTree<T>.
Inherited Members
Namespace: NetTopologySuite.Index.KdTree
Assembly: NetTopologySuite.dll
Syntax
public static class KdTreeExtensions
Methods
| Improve this Doc View SourceNearestNeighbor<T>(KdTree<T>, Coordinate)
Performs a nearest neighbor search of the points in the index.
Declaration
public static KdNode<T> NearestNeighbor<T>(this KdTree<T> self, Coordinate coord)
where T : class
Parameters
Type | Name | Description |
---|---|---|
KdTree<T> | self | The KdTree to look for the nearest neighbor |
Coordinate | coord | The point to search the nearset neighbor for |
Returns
Type | Description |
---|---|
KdNode<T> |
Type Parameters
Name | Description |
---|---|
T |