/** * Tests does Rectangle2D lie inside MultiRectArea object */ public bool contains(java.awt.geom.Rectangle2D r) { return this.contains(r.getX(), r.getY(), r.getWidth(), r.getHeight()); // Basties note: easy to implement... }
/** * Tests does Point2D lie inside MultiRectArea object */ public bool contains(java.awt.geom.Point2D p) { return contains(p.getX(), p.getY()); }