@Override public boolean figureContains(Point2D.Double p){
  Rectangle2D.Double r=(Rectangle2D.Double)rectangle.clone();
  double grow=AttributeKeys.getPerpendicularHitGrowth(this) + 1d;
  Geom.grow(r,grow,grow);
  return r.contains(p);
}

@ Override public boolean figureContains ( Point2D . Double p ) { Rectangle2D . Double r = ( Rectangle2D . Double ) rectangle . clone ( ) ; double grow = AttributeKeys . getPerpendicularHitGrowth ( this ) + 1d ; Geom . grow ( r , grow , grow ) ; return r . contains ( p ) ; }
checks if a point2d . double is inside the figure .
