diff options
Diffstat (limited to 'Algorithms/Part-I/3-Collinear')
-rw-r--r-- | Algorithms/Part-I/3-Collinear/Point.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Algorithms/Part-I/3-Collinear/Point.java b/Algorithms/Part-I/3-Collinear/Point.java index 7307d04..bd5bbe7 100644 --- a/Algorithms/Part-I/3-Collinear/Point.java +++ b/Algorithms/Part-I/3-Collinear/Point.java @@ -60,7 +60,7 @@ public class Point implements Comparable<Point> { double sq = slopeTo(q); if (sp < sq) return -1; if (sp > sq) return 1; - return p.compareTo(q); + return 0; } } |