graham-scan-convex-hull

0.4.0 • Public • Published

Graham scan convex hull algorithm

from Computational Geometry: Algorithms and Applications book

Demo

var convexHull = require('graham-scan-convex-hull');
 
var coords = [
    [0, 1],
    [2, 0],
    [3, 1],
    [2, 2],
    [2, 1]
]
 
console.log(convexHull(coords));
// prints [[0, 1],[2, 0],[3, 1],[2, 2]]
 

/graham-scan-convex-hull/

    Package Sidebar

    Install

    npm i graham-scan-convex-hull

    Weekly Downloads

    1

    Version

    0.4.0

    License

    MIT

    Unpacked Size

    18.9 kB

    Total Files

    10

    Last publish

    Collaborators

    • ggolikov