{"name":"convex-hull","version":"1.0.1","description":"Any dimensional convex hull","main":"ch.js","dependencies":{"monotone-convex-hull-2d":"^1.0.1","incremental-convex-hull":"^1.0.1"},"devDependencies":{"tape":"^2.13.1"},"scripts":{"test":"tape test/*.js"},"repository":{"type":"git","url":"https://github.com/mikolalysenko/convex-hull.git"},"keywords":["convex","hull","any","dimension"],"author":{"name":"Mikola Lysenko"},"license":"MIT","bugs":{"url":"https://github.com/mikolalysenko/convex-hull/issues"},"homepage":"https://github.com/mikolalysenko/convex-hull","gitHead":"18598b4cacd660b6083cd8131b00493e0056a100","_id":"convex-hull@1.0.1","_shasum":"3df330bd1c5afb4cb3aeadefa054f097e30b06a0","_from":".","_npmVersion":"2.1.4","_nodeVersion":"0.10.26","_npmUser":{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},"maintainers":[{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"}],"dist":{"shasum":"3df330bd1c5afb4cb3aeadefa054f097e30b06a0","tarball":"http://registry-npm.ywwl.com/convex-hull/download/convex-hull-1.0.1.tgz","integrity":"sha512-IhOkAM6h/PLXSigOcwMuGH6KvTIcYUPE9ghB612m4sFp7PtNdJmioKq2KMV5G5jvOgASCOKDjClitR21tINHtQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBwDGO6PncY7ENs+lQN7e6NPBAvOvFvfDFq0NNe3ebjsAiAWykK+dRhcyMMpK5T2Ay7jjabsm50m8KCzda3pWEEjcw=="}],"size":2331,"noattachment":false,"key":"/convex-hull/-/convex-hull-1.0.1.tgz"},"directories":{},"readme":"convex-hull\n===========\nThis module is a wrapper over various convex hull modules which exposes a simple interface for computing convex hulls of point sets in any dimension.\n\n# Example\n\n```javascript\nvar ch = require('convex-hull')\n\nvar points = [\n  [0,0],\n  [1,0],\n  [0,1],\n  [0.15,0.15],\n  [0.5, 0.5]\n]\n\n\n//Picture:\n//\n// [0,1] *\n//       |\\\n//       | \\\n//       |  \\\n//       |   \\\n//       |    \\\n//       |     \\\n//       |      \\\n//       |       * [0.5,0.5]\n//       |        \\\n//       |         \\\n//       |          \\\n//       |           \\\n//       |            \\\n//       |    *        \\\n//       | [0.15,0.15]  \\\n// [0,0] *---------------* [1,0]\n//\n\nconsole.log(ch(points))\n```\n\nOutput:\n\n```javascript\n[[0, 1], [1, 2], [2, 0]]\n```\n\n# Install\n\n```\nnpm install convex-hull\n```\n\nIf you want to use it in a webpage, use [browserify](http://browserify.org).\n\n# API\n\n#### `require('convex-hull')(points)`\nComputes the convex hull of `points`\n\n* `points` is an array of points encoded as `d` length arrays\n\n**Returns** A polytope encoding the convex hull of the point set.\n\n**Time complexity** The procedure takes O(n^floor(d/2) + n log(n)) time.\n\n**Note** This module is a wrapper over incremental-convex-hull and monotone-convex-hull for convenience.  It will select an optimal algorithm for whichever dimension is appropriate.\n\n\n# Credits\n(c) 2014 Mikola Lysenko. MIT License","publish_time":1416624746348,"_cnpm_publish_time":1416624746348,"dist-tags":{"latest":"1.0.3"}}