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