{"name":"convex-hull","version":"1.0.0","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":"e1f4e8d0d089c11622ecb29fbd3b8a167b688b0f","_id":"convex-hull@1.0.0","_shasum":"17a13d46201732c8005a1cd0350b77f7d17475a4","_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":"17a13d46201732c8005a1cd0350b77f7d17475a4","tarball":"http://registry-npm.ywwl.com/convex-hull/download/convex-hull-1.0.0.tgz","integrity":"sha512-bgJvieZEHQiVBUxlG+9VQmcQyr06OgKHup1OgmH6nwCEBM2UJuDvXlAYAyllLmfpLWyZyPrx7zUl9I7KQiGhWg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD7woxuGc1YgD5KdoGXjwgL7MTvAOCHq6pRWukM5ZegjgIhAIubOVSlkJ/HL+HGUM/xiAkXrndJw7VStusWiqecJrP8"}],"size":2328,"noattachment":false,"key":"/convex-hull/-/convex-hull-1.0.0.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":1416621305667,"_cnpm_publish_time":1416621305667,"dist-tags":{"latest":"1.0.3"}}