{"name":"convex-hull","version":"1.0.2","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":"138b4fffd3913aaa71f292d17f9030720b7f6c14","_id":"convex-hull@1.0.2","_shasum":"4f402ab781053562faeb2f70067ab71788483af0","_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":"4f402ab781053562faeb2f70067ab71788483af0","tarball":"http://registry-npm.ywwl.com/convex-hull/download/convex-hull-1.0.2.tgz","integrity":"sha512-8yfAUqRxil+9SGIz0POjP2VAQqqpVDf8klEjQtdJSyG/DXE+irJdvh5VPNP3w+DckgeBVz3crI1GGn0dF8RFsQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCm8nsOIgWpgFgyyUMKMb1sigpFSoCOmQGBpWx9cIlO+wIhAMYAlcUUQGCBaIJv8Rakl/lH9B6ONHbOfH/PMMh84iVK"}],"size":2811,"noattachment":false,"key":"/convex-hull/-/convex-hull-1.0.2.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":1416629772825,"_cnpm_publish_time":1416629772825,"dist-tags":{"latest":"1.0.3"}}