We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56ef4f2 commit 091f57dCopy full SHA for 091f57d
src/main/java/com/thealgorithms/geometry/RotatingCalipers.java
@@ -292,8 +292,8 @@ private static List<Point> ensureCounterClockwiseOrder(List<Point> hull) {
292
for (int i = 1; i < hull.size(); i++) {
293
Point current = hull.get(i);
294
// Check if current point is better than current best
295
- boolean isBetter = current.y() < bottomMost.y() ||
296
- (current.y() == bottomMost.y() && current.x() < bottomMost.x());
+ boolean isBetter = current.y() < bottomMost.y()
+ || (current.y() == bottomMost.y() && current.x() < bottomMost.x());
297
298
if (isBetter) {
299
bottomMost = current;
0 commit comments