/src/main/java/org/htmlunit/util/geometry/Polygon2D.java
boundingBox_.Rectangle2D( x , y , y , x) ;
boundingBox_.extend ( x, y ) ;
points_ = new ArrayList<>(); points_.add(new Point2D(startX, startY)); boundingBox_ = new Rectangle2D(startX, startY, startX, startY); } public Polygon2D lineTo(final double x, final double y) { points_.add(new Point2D(x, y)); <extra_id_0> return this; } @Override public boolean contains(final double x, final double y) { if (!boundingBox_.contains(x, y)) { return false;