public bool SetToIntersectionWith(MinMaxDouble range) { if (Overlaps(range)) { Min = Math.Max(Min, range.Min); Max = Math.Min(Max, range.Max); return(true); } return(false); }
static public bool Overlaps(MinMaxDouble range1, MinMaxDouble range2) { return(range1.Overlaps(range2)); }
public bool Includes(MinMaxDouble range) { return(Max >= range.Max && Min <= range.Min); }
public bool Overlaps(MinMaxDouble range) { return(Max >= range.Min && Min <= range.Max); }
public MinMaxDouble(MinMaxDouble source) { Min = source.Min; Max = source.Max; }