public RangeDouble Intersect(RangeDouble other) { var min = Math.Max(_Min, other._Min); var max = Math.Min(_Max, other._Max); return(new RangeDouble(min, max)); }
public bool Overlaps(RangeDouble other) { if (_Max < other._Min) { return(false); } if (_Min > other._Max) { return(false); } return(true); }