/src/main/java/org/htmlunit/util/geometry/Polygon2D.java
if ( testLine.contains( x, y) ) {
if ( border.contains ( x, y ) ) {
int intersectionCount = 0; int i = 0; while (i < points_.size() - 1) { final Point2D start = points_.get(i); final Point2D end = points_.get(++i); final Line2D border = new Line2D(start, end); <extra_id_0> return true; } final Point2D intersectionPoint = border.intersect(testLine); if (intersectionPoint != null && border.contains(intersectionPoint.getX(), intersectionPoint.getY()) && testLine.contains(intersectionPoint.getX(), intersectionPoint.getY())) {