Skip to content

Commit 091f57d

Browse files
Sushant NadavadeSushant Nadavade
authored andcommitted
modifications done
1 parent 56ef4f2 commit 091f57d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/thealgorithms/geometry/RotatingCalipers.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,8 @@ private static List<Point> ensureCounterClockwiseOrder(List<Point> hull) {
292292
for (int i = 1; i < hull.size(); i++) {
293293
Point current = hull.get(i);
294294
// 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());
295+
boolean isBetter = current.y() < bottomMost.y()
296+
|| (current.y() == bottomMost.y() && current.x() < bottomMost.x());
297297

298298
if (isBetter) {
299299
bottomMost = current;

0 commit comments

Comments
 (0)