/src/main/java/org/htmlunit/util/geometry/Polygon2D.java
if ( intersectionPoint != null && border.contains( intersectionPoint.getX( ) , intersectionPoint.getX( ) ) && testLine.contains( intersectionPoint.getX( ) , intersectionPoint
if ( intersectionPoint != null && border.contains ( intersectionPoint.getX ( ) , intersectionPoint.getY ( ) ) && testLine.contains ( intersectionPoint.getX ( ) , intersectionPoint.getY ( ) ) ) {
final Point2D end = points_.get(i); final Line2D border = new Line2D(start, end); if (border.contains(x, y)) { return true; } final Point2D intersectionPoint = border.intersect(testLine); <extra_id_0> intersectionCount++; } return intersectionCount % 2 != 0; } @Override public boolean isEmpty() {