/// <summary> /// Checks if this Interval overlaps with another. /// </summary> public Boolean Overlaps(Interval other) { return(MathD.Max(Min, other.Min) <= MathD.Min(Max, other.Max)); }
public Boolean Equals(Interval obj) { return(MathD.Abs(Min - obj.Min) < MathD.EPSILON && MathD.Abs(Max - obj.Max) < MathD.EPSILON); }