Exemple #1
0
 public bool Intersects(Interval1D that)
 {
     if (this.Max < that.Min)
     {
         return(false);
     }
     if (that.Max < this.Min)
     {
         return(false);
     }
     return(true);
 }
Exemple #2
0
 public Interval2D(Interval1D x, Interval1D y)
 {
     this.X = x;
     this.Y = y;
 }