{"_id":"2d-bounds","_rev":"3-d27022adaa5061d90ff049782afcc9fa","name":"2d-bounds","description":"barebones array based 2d bounds compute","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"2d-bounds","version":"1.0.0","description":"barebones array based 2d bounds compute","main":"2d-bounds.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"https://github.com/tmpvar/2d-bounds.git"},"keywords":["2d","aabb","bounds","arrays","polyline","points"],"author":{"name":"Elijah Insua","email":"tmpvar@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/tmpvar/2d-bounds/issues"},"homepage":"https://github.com/tmpvar/2d-bounds","devDependencies":{"tape":"^4.0.0"},"gitHead":"d86e90f0e0ebb65355ab0ac732ee6a1d0f48614d","_id":"2d-bounds@1.0.0","_shasum":"1475604e25aa7a1607d8bbfd42589fa697920cd0","_from":".","_npmVersion":"2.7.5","_nodeVersion":"0.10.37","_npmUser":{"name":"tmpvar","email":"tmpvar@gmail.com"},"maintainers":[{"name":"tmpvar","email":"tmpvar@gmail.com"}],"dist":{"shasum":"1475604e25aa7a1607d8bbfd42589fa697920cd0","tarball":"https://registry.npmjs.org/2d-bounds/-/2d-bounds-1.0.0.tgz","integrity":"sha512-0XEbD8Rb0jbSxnwWyKKaMQdvT5eZIh9mmKRm0Meh5Fdu2J3cx7DnThiHZmhsPhGCxrfZeEh4LDYmfYv4OwR3CQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCKUJOVua0g6UV+pJ1VYtMMVp5a97rWJ7JVx4IYUP/BbAIgK1m1sUYfZSYee3DTLlTxzJ+Ur2JMrc4Qbwnkou9SQQk="}]}}},"readme":"# 2d-bounds\n\nbarebones array based 2d bounds compute\n\n## install\n\n`npm install 2d-bounds`\n\n## use\n\n__bounds2__(`points` [, `out`])\n\n* `points` - array of 2+ item arrays (i.e. `[[0, 0], [1, 1]]`) representing an array of 2d vectors\n* `out` - avoid creating garbage by reusing an array\n\nreturns `out` which is a 4 component array: `[lowX, lowY, hiX, hiY]`\n\n### example\n\n```javascript\nvar bounds2 = require('2d-bounds');\n\nvar polyline = [\n  [-100, 100],\n  [0, 0],\n  [10, 200]\n];\n\nvar b = bounds2(polyline);\n\nconsole.log(b);\n// outputs: [ -100, 0, 10, 200 ]\n```\n\n## license\n\n[MIT](LICENSE.txt)\n","maintainers":[{"name":"tmpvar","email":"tmpvar@gmail.com"}],"time":{"modified":"2022-06-12T14:06:50.914Z","created":"2015-04-19T22:53:16.940Z","1.0.0":"2015-04-19T22:53:16.940Z"},"homepage":"https://github.com/tmpvar/2d-bounds","keywords":["2d","aabb","bounds","arrays","polyline","points"],"repository":{"type":"git","url":"https://github.com/tmpvar/2d-bounds.git"},"author":{"name":"Elijah Insua","email":"tmpvar@gmail.com"},"bugs":{"url":"https://github.com/tmpvar/2d-bounds/issues"},"license":"MIT","readmeFilename":"README.md"}