checkpoint
[anneal.git] / src / edu / berkeley / qfat / geom / PointSet.java
index c1b4cf9..b75038c 100644 (file)
@@ -36,9 +36,10 @@ public class PointSet<V extends HasPoint> implements Iterable<V> {
         exact.remove(p);
     }
 
-    public V nearest(Point p) {
+    public V nearest(Point p) { return nearest(p, null); }
+    public V nearest(Point p, Visitor<V> vis) {
         if (exact.size()==0) return null;
-        return rtree.nearest(p);
+        return rtree.nearest(p, vis);
     }
 
     // FEATURE: compute incrementally?