{"name":"mat4-decompose","version":"1.0.0","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":"node test.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":"d25d811277c49a2cc54e4288728bc37b7c34a769","_id":"mat4-decompose@1.0.0","_shasum":"7e6c3367f27939a088a50cb75711ec6c9cf021e7","_from":".","_npmVersion":"2.1.4","_nodeVersion":"0.10.32","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"maintainers":[{"name":"mattdesl","email":"dave.des@gmail.com"}],"dist":{"shasum":"7e6c3367f27939a088a50cb75711ec6c9cf021e7","tarball":"http://registry-npm.ywwl.com/mat4-decompose/download/mat4-decompose-1.0.0.tgz","integrity":"sha512-HU3yP/l0kqSvZSSKtrmhU4sai58SfgEq9RP3TQtnHO0OSk2lxImaq/YLZoapUOowOu/q2iFFYRPr23WnNLVsqg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGXTrHHgXxImki7X5bGsdEzfnmadmh59JBFDWaZqILUgAiBevloTEr7p5saRH/wxAw9LZXQbLac1MRbJjr3Mqyo6nw=="}],"size":3936,"noattachment":false,"key":"/mat4-decompose/-/mat4-decompose-1.0.0.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":1417974845291,"_cnpm_publish_time":1417974845291,"dist-tags":{"latest":"1.0.4"}}