Cleanup and various bugfixes
This commit is contained in:
+1
-1
@@ -163,7 +163,7 @@ grahamScan = foldr push []
|
||||
-- https://codereview.stackexchange.com/questions/206019/graham-scan-algorithm-in-haskell
|
||||
grahamEliminate :: [Point2] -> [Point2]
|
||||
grahamEliminate (x:y:z:xs)
|
||||
| isRHS x y z = grahamEliminate (x:z:xs)
|
||||
| not $ isLHS x y z = grahamEliminate (x:z:xs)
|
||||
grahamEliminate xs = xs
|
||||
|
||||
-- | Return midpoint between two points.
|
||||
|
||||
Reference in New Issue
Block a user