(Point a, Point b, Point c)
| 20 | } |
| 21 | |
| 22 | public static int orientation(Point a, Point b, Point c) { |
| 23 | return Integer.compare((b.x - a.x) * (c.y - a.y) - (b.y - a.y) * (c.x - a.x), 0); |
| 24 | } |
| 25 | |
| 26 | private final class PolarOrder implements Comparator<Point> { |
| 27 | @Override |