]> gitweb.fperrin.net Git - GpsPrune.git/blobdiff - tim/prune/data/DoubleRange.java
Version 16, February 2014
[GpsPrune.git] / tim / prune / data / DoubleRange.java
index 4e361224f420ed32b72473edc1e5adf87d37a3f0..3f252eed6cd2bcfe00bcdc272c2f1f82404dcbba 100644 (file)
@@ -45,6 +45,18 @@ public class DoubleRange
                _empty = false;
        }
 
+       /**
+        * Combine this range with another one
+        * @param inOtherRange other range to add to this one
+        */
+       public void combine(DoubleRange inOtherRange)
+       {
+               if (inOtherRange != null && inOtherRange.getRange() > 1.0)
+               {
+                       addValue(inOtherRange.getMinimum());
+                       addValue(inOtherRange.getMaximum());
+               }
+       }
 
        /**
         * @return true if data values were found