ErikPelli commented on code in PR #12036:
URL: https://github.com/apache/lucene/pull/12036#discussion_r1056927620


##########
lucene/core/src/java/org/apache/lucene/geo/GeoUtils.java:
##########
@@ -205,13 +205,7 @@ static boolean within90LonDegrees(double lon, double 
minLon, double maxLon) {
   public static int orient(double ax, double ay, double bx, double by, double 
cx, double cy) {
     double v1 = (bx - ax) * (cy - ay);
     double v2 = (cx - ax) * (by - ay);
-    if (v1 > v2) {
-      return 1;
-    } else if (v1 < v2) {
-      return -1;
-    } else {
-      return 0;
-    }
+    return Double.compare(v1, v2);

Review Comment:
   This coulsd be a serious edge case, let me revert it in another commit and 
it'll be fine



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to