Exemplo n.º 1
0
  @Override
  public boolean Hit(Point p) {

    if (shape.getBounds2D().contains(p.x, p.y)) {
      if (shape.contains(p.x, p.y)) {
        return true;
      }
    }

    return false;
  }