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
/
Segment.java
diff --git
a/src/edu/berkeley/qfat/geom/Segment.java
b/src/edu/berkeley/qfat/geom/Segment.java
index
fa303d1
..
db41142
100644
(file)
--- a/
src/edu/berkeley/qfat/geom/Segment.java
+++ b/
src/edu/berkeley/qfat/geom/Segment.java
@@
-32,7
+32,7
@@
public class Segment implements HasBoundingBox {
public double distance(Point p) {
Line line = getLine();
- Point proj = line.projection(p);
+ Point proj = line.getProjection(p);
if (proj.distance(p1)+proj.distance(p2) > length())
return Math.min(p1.distance(p),
p2.distance(p));