Commit in lcsim/src/org/lcsim/fit/zsegment on MAIN
ZSegmentFitter.java+3-31.3 -> 1.4
Very minor change

lcsim/src/org/lcsim/fit/zsegment
ZSegmentFitter.java 1.3 -> 1.4
diff -u -r1.3 -r1.4
--- ZSegmentFitter.java	11 Dec 2007 20:46:25 -0000	1.3
+++ ZSegmentFitter.java	12 Jan 2009 23:38:42 -0000	1.4
@@ -29,7 +29,6 @@
  */
 public class ZSegmentFitter {
     
-    private double eps = 1e-6;
     private double[] _s;
     private double[] _zmin;
     private double[] _zmax;
@@ -37,6 +36,7 @@
     private double _area;
     private double[] _centroid = new double[2];
     private SymmetricMatrix _covariance;
+    private double _eps = 1e-6;
     
     /**
      * Create a new instance of ZSegmentFitter
@@ -128,12 +128,12 @@
 //  See if this intersection is consistent with all z segments
         for (int i=0; i<_s.length; i++) {
             double zpred = cross[0] + _s[i]*cross[1];
-            if (zpred<_zmin[i]-eps || zpred>_zmax[i]+eps ) return;
+            if (zpred<_zmin[i]-_eps || zpred>_zmax[i]+_eps ) return;
         }
         
 //  See if this intersection duplicates one we have previously found
         for (double[] old_cross : _polygon) {
-            if (Math.pow(cross[0]-old_cross[0],2)+Math.pow(cross[1]-old_cross[1],2)<Math.pow(eps,2)) return;
+            if (Math.pow(cross[0]-old_cross[0],2)+Math.pow(cross[1]-old_cross[1],2)<Math.pow(_eps,2)) return;
         }
         
 //  Add this intersection to our polygon
CVSspam 0.2.8