Commit in GeomConverter/src/org/lcsim/detector/solids on MAIN | |||
GeomOp3D.java | +1 | -1 | 1.4 -> 1.5 |
Minor bugfix in distanceBetween(Line3D, Plane3D).
diff -u -r1.4 -r1.5 --- GeomOp3D.java 6 Dec 2007 02:39:32 -0000 1.4 +++ GeomOp3D.java 25 Feb 2008 19:37:20 -0000 1.5 @@ -503,7 +503,7 @@
*/ public static double distanceBetween(Line3D line, Plane3D plane) {
- if (VecOp.dot(line.getDirection(),plane.getNormal()) > DISTANCE_TOLERANCE) return 0;
+ if (Math.abs(VecOp.dot(line.getDirection(),plane.getNormal())) > DISTANCE_TOLERANCE) return 0;
else return distanceBetween(line.getStartPoint(),plane); }