Skip to content

Commit 914e525

Browse files
committed
ran prettier
1 parent 36e2b16 commit 914e525

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Geometry/ConvexHullGraham.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ function compare(a, b) {
1313
return 1
1414
}
1515
function orientation(a, b, c) {
16-
const crossProduct = (b.y - a.y) * (c.x - b.x) - (b.x - a.x) * (c.y - b.y);
16+
const crossProduct = (b.y - a.y) * (c.x - b.x) - (b.x - a.x) * (c.y - b.y)
1717

18-
if(crossProduct === 0) return 0;
19-
return (crossProduct > 0) ? 1 : -1;
18+
if (crossProduct === 0) return 0
19+
return crossProduct > 0 ? 1 : -1
2020
}
2121

2222
function convexHull(points) {

0 commit comments

Comments
 (0)