()
| 16 | } |
| 17 | |
| 18 | public Comparator<Point> polarOrder() { |
| 19 | return new PolarOrder(); |
| 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); |
no outgoing calls