From 4ba86a0dcf74b906d6e80114a0992cf46b9d66f8 Mon Sep 17 00:00:00 2001 From: arnabuchiha Date: Mon, 5 Oct 2020 14:20:03 +0530 Subject: [PATCH] Fixes: #413 Implemented Convex Hull using Graham Scan --- Geometry/ConvexHullGraham.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Geometry/ConvexHullGraham.js b/Geometry/ConvexHullGraham.js index 304166347..07e6b60c3 100644 --- a/Geometry/ConvexHullGraham.js +++ b/Geometry/ConvexHullGraham.js @@ -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);