コード例 #1
0
 /// <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));
 }
コード例 #2
0
 public Boolean Equals(Interval obj)
 {
     return(MathD.Abs(Min - obj.Min) < MathD.EPSILON && MathD.Abs(Max - obj.Max) < MathD.EPSILON);
 }