X-Git-Url: http://gitweb.fperrin.net/?p=GpsPrune.git;a=blobdiff_plain;f=tim%2Fprune%2Fdata%2FDoubleRange.java;h=3f252eed6cd2bcfe00bcdc272c2f1f82404dcbba;hp=4e361224f420ed32b72473edc1e5adf87d37a3f0;hb=326f489e36aa7f235bc19409a57bf4955cd50f24;hpb=8c8868ae29b3252f02e094c02307384cf61ba667 diff --git a/tim/prune/data/DoubleRange.java b/tim/prune/data/DoubleRange.java index 4e36122..3f252ee 100644 --- a/tim/prune/data/DoubleRange.java +++ b/tim/prune/data/DoubleRange.java @@ -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