/src/main/java/org/htmlunit/util/geometry/Polygon2D.java
points_ ;
points_ = new ArrayList<> ( ) ;
package org.htmlunit.util.geometry; import java.util.ArrayList; public class Polygon2D implements Shape2D { private final ArrayList<Point2D> points_; private final Rectangle2D boundingBox_; public Polygon2D(final double startX, final double startY) { <extra_id_0> 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)); boundingBox_.extend(x, y);