Exemple #1
0
 /**
  * Does this two-dimensional interval contain the point p?
  * @param p the two-dimensional point
  * @return true if this two-dimensional interval contains the point p; false otherwise
  */
 public boolean contains(Point2D p) {
     return x.contains(p.x())  && y.contains(p.y());
 }