{"_id":"extract-frustum-planes","_rev":"9-0820628f467cd1ae1ae909456026c0af","name":"extract-frustum-planes","description":"Extracts the planes for a WebGL viewing frustum","dist-tags":{"latest":"1.0.0"},"versions":{"0.0.0":{"name":"extract-frustum-planes","version":"0.0.0","description":"Extracts the planes for a WebGL viewing frustum","main":"extract-planes.js","directories":{"test":"test"},"dependencies":{},"devDependencies":{"tap":"~0.4.4","tape":"~1.1.1"},"scripts":{"test":"tap test/*.js"},"repository":{"type":"git","url":"git://github.com/mikolalysenko/extract-frustum-planes.git"},"keywords":["view","frustum","plane","extract","webgl","3d"],"author":{"name":"Mikola Lysenko"},"license":"MIT","bugs":{"url":"https://github.com/mikolalysenko/extract-frustum-planes/issues"},"_id":"extract-frustum-planes@0.0.0","dist":{"shasum":"5fb88e7ac8ea1937d58d19a583ad32e8d432024c","tarball":"https://registry.npmjs.org/extract-frustum-planes/-/extract-frustum-planes-0.0.0.tgz","integrity":"sha512-R8M6XgcanKesx21JP1H56fmKuE9n6mzRkViN8ndesbYtxXqLF4nE4KXpvqe8FRlWVMqSY+BkihrRDPHmCKc7fg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD8OKooWYL/qxf+EvXWOGpA8+AszEm0+lIwb0Z7VZK8OwIgd5wK0A/pafRiabpIg3vCF5edPYlO6Lq6F1ZelG+71pk="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},"maintainers":[{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"}]},"1.0.0":{"name":"extract-frustum-planes","version":"1.0.0","description":"Extracts the planes for a WebGL viewing frustum","main":"extract-planes.js","directories":{"test":"test"},"dependencies":{},"devDependencies":{"tap":"~0.4.4","tape":"~1.1.1"},"scripts":{"test":"tap test/*.js"},"repository":{"type":"git","url":"git://github.com/mikolalysenko/extract-frustum-planes.git"},"keywords":["view","frustum","plane","extract","webgl","3d"],"author":{"name":"Mikola Lysenko"},"license":"MIT","bugs":{"url":"https://github.com/mikolalysenko/extract-frustum-planes/issues"},"homepage":"https://github.com/mikolalysenko/extract-frustum-planes","_id":"extract-frustum-planes@1.0.0","dist":{"shasum":"97d5703ff0564c8c3c6838cac45f9e7bc52c9ef5","tarball":"https://registry.npmjs.org/extract-frustum-planes/-/extract-frustum-planes-1.0.0.tgz","integrity":"sha512-GivvxEMgjSNnB3e1mIMBlB5ogPB6XyEjOQRGG0SfYVVLtu1ntLGHLT1ly8+mE819dKBHBwnm9+UBCScjiMgppA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD7WKJRUm1nkVWn6dr0zgGum+FltlaZuFvRxQw9jjm7IAIgdP7UJ/WeSa19YggPZIyRmhtm3UB04JguGRTEezQHnbs="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},"maintainers":[{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"}]}},"readme":"extract-frustum-planes\n======================\nReturns a list of frustum planes from a given WebGL matrix (assuming the matrix is stored in the same format as used by [gl-matrix](https://github.com/toji/gl-matrix)).\n\n\n## Install\n\n    npm install extract-frustum-planes\n\n## Example\n\n```javascript\nvar getPlanes = require(\"extract-frustum-planes\")\n\nvar glm = require(\"gl-matrix\")\nvar m = glm.mat4.perspective()\n```\n\n## API\n\n### `require(\"extract-frustum-planes\")(worldToClip[, zNear, zFar])`\nExtracts the frustum planes of the combined world to clip coordinate matrix for WebGL\n\n* `worldToClip` is the concatenated model-view-projection matrix in the same format as expected by WebGL (ie compatible with gl-matrix)\n* `zNear` is the near clip plane distance as set by `gl.depthRange` (default 0.0)\n* `zFar` is the far clip plane distance as set by `gl.depthRange`\n\n**Returns** An array of 6 planes encoding the view frustum stored in the order:\n\n* `left`\n* `right`\n* `top`\n* `bottom`\n* `near`\n* `far`\n\n## Credits\n(c) 2013 Mikola Lysenko. MIT License","maintainers":[{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"}],"time":{"modified":"2022-06-17T22:59:01.609Z","created":"2013-10-10T23:29:51.201Z","0.0.0":"2013-10-10T23:29:52.632Z","1.0.0":"2014-06-19T15:21:49.283Z"},"author":{"name":"Mikola Lysenko"},"repository":{"type":"git","url":"git://github.com/mikolalysenko/extract-frustum-planes.git"},"homepage":"https://github.com/mikolalysenko/extract-frustum-planes","keywords":["view","frustum","plane","extract","webgl","3d"],"bugs":{"url":"https://github.com/mikolalysenko/extract-frustum-planes/issues"},"license":"MIT","readmeFilename":"README.md","users":{"plitat":true,"0x4c3p":true}}