- // construct a set of points for input
- Set<Hull.Point> points = new HashSet<>(Arrays.asList(new Hull.Point[] {a, b, c}));
- // or manually:
- Set<Hull.Point> points2 = new HashSet<>();
- points2.add(a);
- points2.add(b);
- points2.add(c);
-
- List<Hull.Point> out = Hull.hull(points);
- System.out.println(out.get(0) == c);
- System.out.println(out.contains(b));
- }
-}
+List<Hull.Point> out = Hull.hull(points);
+System.out.println(out.get(0) == c);
+System.out.println(out.contains(b));