Graham scan convex hull algorithm
from Computational Geometry: Algorithms and Applications book
var convexHull = ; var coords = 0 1 2 0 3 1 2 2 2 1 console;// prints [[0, 1],[2, 0],[3, 1],[2, 2]]
from Computational Geometry: Algorithms and Applications book
var convexHull = ; var coords = 0 1 2 0 3 1 2 2 2 1 console;// prints [[0, 1],[2, 0],[3, 1],[2, 2]]
npm i graham-scan-convex-hull
5
0.4.0
MIT
18.9 kB
10