Skip to content

Commit 481c2d0

Browse files
committed
Apply clang-format fixes for line intersection
1 parent 83eca10 commit 481c2d0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ private static Optional<Point2D.Double> sharedEndpoint(Point p1, Point p2, Point
100100
}
101101

102102
private static boolean onSegment(Point a, Point b, Point c) {
103-
return b.x() >= Math.min(a.x(), c.x()) && b.x() <= Math.max(a.x(), c.x())
104-
&& b.y() >= Math.min(a.y(), c.y()) && b.y() <= Math.max(a.y(), c.y());
103+
return b.x() >= Math.min(a.x(), c.x()) && b.x() <= Math.max(a.x(), c.x()) && b.y() >= Math.min(a.y(), c.y()) && b.y() <= Math.max(a.y(), c.y());
105104
}
106105
}

0 commit comments

Comments
 (0)