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