@Test public void basicTest2() { List<Point2D> expectInput = new ArrayList<>(); expectInput.add(new Point2D(1, 1)); expectInput.add(new Point2D(4, 1)); expectInput.add(new Point2D(7, 5)); expectInput.add(new Point2D(7, 6)); expectInput.add(new Point2D(0, 8)); expectInput.add(new Point2D(0, 2)); List<Point2D> testInput = new ArrayList<>(expectInput); GrahamScan expect = new GrahamScan(expectInput.toArray(new Point2D[0])); List<Point2D> test = ConvexHull.solve(testInput); int i = 0; for (Point2D p : expect.hull()) { assertTrue(test.get(i).equals(p)); i++; } }
public static List<Point2D> solve(List<Point2D> input) { return null; }
ConvexHull { public static List<Point2D> solve(List<Point2D> input) { return null; } }
ConvexHull { public static List<Point2D> solve(List<Point2D> input) { return null; }  }
ConvexHull { public static List<Point2D> solve(List<Point2D> input) { return null; }  static List<Point2D> solve(List<Point2D> input); static int ccw(Point2D a, Point2D b, Point2D c); }
ConvexHull { public static List<Point2D> solve(List<Point2D> input) { return null; }  static List<Point2D> solve(List<Point2D> input); static int ccw(Point2D a, Point2D b, Point2D c);  }