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 c3a9bcb commit d5949e0Copy full SHA for d5949e0
src/main/java/com/thealgorithms/divideandconquer/ConvexHull.java
@@ -105,7 +105,7 @@ private ConvexHull() {
105
* negative if in clockwise order; and 0 if they are collinear.
106
*/
107
private static double det(Point a, Point b, Point c) {
108
- return (a.x * b.y + b.x * c.y + c.x * a.y) - (a.y * b.x + b.y * c.x + c.y * a.x);
+ return a.x * b.y + b.x * c.y + c.x * a.y - (a.y * b.x + b.y * c.x + c.y * a.x);
109
}
110
111
/**
0 commit comments