Add another corner Point to the polygon. @param x the x value of the corner to be added @param y the y value of the corner to be added @return this to support fluent style construction
(final double x, final double y)
| 44 | * @return this to support fluent style construction |
| 45 | */ |
| 46 | public Polygon2D lineTo(final double x, final double y) { |
| 47 | points_.add(new Point2D(x, y)); |
| 48 | boundingBox_.extend(x, y); |
| 49 | |
| 50 | return this; |
| 51 | } |
| 52 | |
| 53 | /** |
| 54 | * {@inheritDoc} |