Этот тест тоже прошёл: List<Point> polygon = new ArrayList<>(); polygon.add(new Point(0, 1)); polygon.add(new Point(1, 2)); polygon.add(new Point(2, 1)); polygon.add(new Point(1, 0)); System.out.println(isPointInPolygon(new Point(1, 1), polygon));