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