projects
/
anneal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
checkpoint
[anneal.git]
/
src
/
edu
/
berkeley
/
qfat
/
geom
/
PointSet.java
diff --git
a/src/edu/berkeley/qfat/geom/PointSet.java
b/src/edu/berkeley/qfat/geom/PointSet.java
index
c1b4cf9
..
b75038c
100644
(file)
--- a/
src/edu/berkeley/qfat/geom/PointSet.java
+++ b/
src/edu/berkeley/qfat/geom/PointSet.java
@@
-36,9
+36,10
@@
public class PointSet<V extends HasPoint> implements Iterable<V> {
exact.remove(p);
}
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;
if (exact.size()==0) return null;
- return rtree.nearest(p);
+ return rtree.nearest(p, vis);
}
// FEATURE: compute incrementally?
}
// FEATURE: compute incrementally?