{"name":"convex-hull","version":"1.0.3","description":"Any dimensional convex hull","main":"ch.js","dependencies":{"affine-hull":"^1.0.0","incremental-convex-hull":"^1.0.1","monotone-convex-hull-2d":"^1.0.1"},"devDependencies":{"tape":"^3.0.3"},"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":"631814469a13512540b792101800e459fc736220","_id":"convex-hull@1.0.3","_shasum":"20a3aa6ce87f4adea2ff7d17971c9fc1c67e1fff","_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":"20a3aa6ce87f4adea2ff7d17971c9fc1c67e1fff","tarball":"http://registry-npm.ywwl.com/convex-hull/download/convex-hull-1.0.3.tgz","integrity":"sha512-24rZAoh81t41GHPLAxcsokgjH9XNoVqU2OiSi8iMHUn6HUURfiefcEWAPt1AfwZjBBWTKadOm1xUcUMnfFukhQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEsf98LIk7PvNWNKSu0kms4YZ0lH5OUDvMi7/Aku/J96AiEA3xmO4+zRmR0P9Opym7evqzAtZ8z3PFgxr9GUcnE5fZo="}],"size":2852,"noattachment":false,"key":"/convex-hull/-/convex-hull-1.0.3.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":1416630561517,"_cnpm_publish_time":1416630561517,"dist-tags":{"latest":"1.0.3"}}