Fixes: #413 Implemented Convex Hull using Graham Scan

This commit is contained in:
arnabuchiha
2020-10-05 14:26:31 +05:30
parent 4ba86a0dcf
commit 562eebcf91

View File

@ -18,7 +18,7 @@ function orientation (a, b, c) {
// Clockwise
if (alpha > beta) return 1
// Anticlockwise
// Anticlockwise
else if (beta > alpha) return -1
// Colinear
return 0
@ -79,4 +79,4 @@ const points = [
{ x: 3, y: 1 },
{ x: 3, y: 3 }]
convexHull(points);
convexHull(points)