MCPcopy Index your code
hub / github.com/HtmlUnit/htmlunit / lineTo

Method lineTo

src/main/java/org/htmlunit/util/geometry/Polygon2D.java:46–51  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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}

Callers 1

parsePolyMethod · 0.95

Calls 2

addMethod · 0.45
extendMethod · 0.45

Tested by

no test coverage detected