public class KDTree2 extends Object implements Collection<GeoPoint>, Iterable<GeoPoint>
| Modifier and Type | Field and Description |
|---|---|
static int |
K |
| Constructor and Description |
|---|
KDTree2() |
KDTree2(KDTree2Builder builder) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, hashCode, parallelStream, removeIf, spliterator, streampublic static final int K
public KDTree2(KDTree2Builder builder)
builder - public KDTree2()
protected KDNode2 add(KDNode2 source, GeoPoint geoPoint)
source - geoPoint - public boolean add(GeoPoint geoPoint)
add in interface Collection<GeoPoint>geoPoint - public boolean addAll(Collection<? extends GeoPoint> collection)
addAll in interface Collection<GeoPoint>collection - protected List<GeoPoint> query(KDNode2 source, Quadrant quadrant, List<GeoPoint> collector)
source - quadrant - collector - protected GeoPoint nearestNeighbor(KDNode2 source, GeoPoint target, GeoPoint found, double distance)
source - target - found - distance - protected List<GeoPoint> distinct(KDNode2 src, List<GeoPoint> collector)
src - collector - public Enumeration<GeoPoint> enumeration()
protected KDNode2 getNode(KDNode2 source, GeoPoint geoPoint)
source - geoPoint - public boolean contains(Object geoPoint)
contains in interface Collection<GeoPoint>geoPoint - public boolean containsAll(Collection<?> collection)
containsAll in interface Collection<GeoPoint>collection - protected Comparator<GeoPoint> order(KDNode2 node)
node - protected int size(KDNode2 source)
source - public int size()
size in interface Collection<GeoPoint>public boolean isEmpty()
isEmpty in interface Collection<GeoPoint>public Object[] toArray()
toArray in interface Collection<GeoPoint>public <T> T[] toArray(T[] a)
toArray in interface Collection<GeoPoint>public void clear()
clear in interface Collection<GeoPoint>public boolean remove(Object o)
remove in interface Collection<GeoPoint>public boolean removeAll(Collection<?> c)
removeAll in interface Collection<GeoPoint>public boolean retainAll(Collection<?> c)
retainAll in interface Collection<GeoPoint>protected int height(KDNode2 source)
source - public int height()
public void setRoot(KDNode2 root)
root - public KDNode2 getRoot()
public Comparator<GeoPoint> getxComparator()
public Comparator<GeoPoint> getyComparator()
public DistanceCalc getDistanceCalc()
Copyright © 2018 Terra Software Informatics LLC.. All rights reserved.