{"name":"mat4-decompose","version":"1.0.4","description":"decomposes a 3D matrix","main":"index.js","license":"MIT","author":{"name":"Matt DesLauriers","email":"dave.des@gmail.com","url":"https://github.com/mattdesl"},"dependencies":{"gl-mat4":"^1.0.1","gl-vec3":"^1.0.2"},"devDependencies":{"tape":"^3.0.3"},"scripts":{"test":"tape *.js"},"keywords":["4x4","decompose","gl-mat4","mat4","decomposition","interpolation","lerp","linear","tween","animate","css","matrix"],"repository":{"type":"git","url":"git://github.com/mattdesl/mat4-decompose.git"},"homepage":"https://github.com/mattdesl/mat4-decompose","bugs":{"url":"https://github.com/mattdesl/mat4-decompose/issues"},"gitHead":"9c3db514d0ee42149f762a9fbf427a855265bdd3","_id":"mat4-decompose@1.0.4","_shasum":"65eb4fe39d70878f7a444eb4624d52f7e7eb2faf","_from":".","_npmVersion":"2.4.1","_nodeVersion":"0.10.35","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}],"dist":{"shasum":"65eb4fe39d70878f7a444eb4624d52f7e7eb2faf","tarball":"http://registry-npm.ywwl.com/mat4-decompose/download/mat4-decompose-1.0.4.tgz","integrity":"sha512-M3x6GXrzRTt5Ok4/bcHFc869Pe8F3uWaSp3xkUpi+uaTRulPXIZ1GWD13Z3A8WK2bxTrcvX21mjp05gUy/Dwbw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFth8xEHqFLyjD4RJ13g7Pk3ain7amn2cXuWzVHHukQNAiEAuLCSsUYyLpTNAN7YkYhO9rzVhvhG1GiZoG0FLi67U54="}],"size":4346,"noattachment":false,"key":"/mat4-decompose/-/mat4-decompose-1.0.4.tgz"},"directories":{},"readme":"# mat4-decompose\n\n[![stable](http://badges.github.io/stability-badges/dist/stable.svg)](http://github.com/badges/stability-badges)\n\nDecomposes a 3D matrix, useful for animations. Code ported from [W3 CSS Spec](http://www.w3.org/TR/css3-transforms/#decomposing-a-3d-matrix). PRs for more tests/robustness/optimizations welcome. \n\nOrder:\n\n- first isolates perspective\n- then determines translation\n- then determines X scale, XY shear, Y scale, XZ and YZ shear, and Z scale\n- then determines quaternion rotation\n\nYou may also be interested in [mat4-interpolate](https://www.npmjs.com/package/mat4-interpolate), [mat4-recompose](https://www.npmjs.com/package/mat4-recompose), and [css-mat4](https://www.npmjs.com/package/css-mat4).\n\n## Usage\n\n[![NPM](https://nodei.co/npm/mat4-decompose.png)](https://nodei.co/npm/mat4-decompose/)\n\n#### `valid = decompose(matrix[, translation, scale, skew, perspective, quaternion])`\n\nDecomposes the given `matrix` (an array of 16 floats, like those gl-matrix operates on), storing the results into the specified optional vectors.\n\n- `translation` [x, y, z]\n- `scale` [x, y, z]\n- `skew` [xy, xz, yz] skew factors\n- `perspective` [x, y, z, w]\n- `quaternion` [x, y, z, w]\n\nReturns `false` is this matrix cannot be decomposed, `true` otherwise.\n\n## License\n\nMIT, see [LICENSE.md](http://github.com/mattdesl/mat4-decompose/blob/master/LICENSE.md) for details.\n","publish_time":1423360607652,"_cnpm_publish_time":1423360607652,"dist-tags":{"latest":"1.0.4"}}