{"_id":"gl-mat2","_rev":"19-ae8fb5593fcaf6447f7437e42dfd9565","name":"gl-mat2","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"gl-mat2","version":"1.0.0","keywords":["gl-matrix","matrix","maths"],"license":{"url":"http://github.com/gl-modules/gl-mat2/blob/master/LICENSE.md","type":"zlib"},"_id":"gl-mat2@1.0.0","maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"}],"contributors":[{"name":"Brandon Jones","email":"tojiro@gmail.com"},{"name":"Colin MacKenzie IV","email":"sinisterchipmunk@gmail.com"},{"url":"http://hughsk.io/","name":"Hugh Kennedy","email":"hughskennedy@gmail.com"}],"homepage":"https://github.com/gl-modules/gl-mat2","bugs":{"url":"https://github.com/gl-modules/gl-mat2/issues"},"dist":{"shasum":"22c06f06bbc141a8bfac7d8573f5528f1de29d46","tarball":"https://registry.npmjs.org/gl-mat2/-/gl-mat2-1.0.0.tgz","integrity":"sha512-C0diu/xzGmOJqAX2p/3WfvqxlKt6DSHiiepscK2eISG/RUwoWXe30yh6Ab5MDBvFP2pGKvsl9fNMlJUEHHljBA==","signatures":[{"sig":"MEUCIQCygHfDRaRzLEVEkF3VLkHvtmh59PvC5u6MlIy8gKsrqgIgB3iZT3i7mCeZ+XsdWn/Sd/A9nMN9uwsHikH1AZFLSiw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"22c06f06bbc141a8bfac7d8573f5528f1de29d46","gitHead":"5f1dda2c734c183ad6dbee676a73e07de17c7dda","scripts":{"get-docs":"cat *.js | dox --api"},"_npmUser":{"name":"hughsk","email":"hughskennedy@gmail.com"},"repository":{"url":"git://github.com/gl-modules/gl-mat2.git","type":"git"},"_npmVersion":"1.4.13","description":"gl-matrix's mat2, split into smaller pieces","directories":{},"dependencies":{},"devDependencies":{"dox":"git://github.com/hughsk/dox#api-context"}},"1.0.1":{"name":"gl-mat2","version":"1.0.1","keywords":["gl-matrix","matrix","maths"],"license":{"url":"http://github.com/gl-modules/gl-mat2/blob/master/LICENSE.md","type":"zlib"},"_id":"gl-mat2@1.0.1","maintainers":[{"name":"mikkoh","email":"me@mikkoh.com"},{"name":"tatumcreative","email":"tatum.creative@gmail.com"},{"name":"wwwtyro","email":"wwwtyro@gmail.com"},{"name":"rezaali","email":"syed.reza.ali@gmail.com"},{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},{"name":"chrisdickinson","email":"chris@neversaw.us"},{"name":"mattdesl","email":"dave.des@gmail.com"},{"name":"substack","email":"substack@gmail.com"},{"name":"hughsk","email":"hughskennedy@gmail.com"},{"name":"thibauts","email":"thibaut.seguy@gmail.com"},{"name":"yoshuawuyts","email":"i@yoshuawuyts.com"}],"contributors":[{"name":"Brandon Jones","email":"tojiro@gmail.com"},{"name":"Colin MacKenzie IV","email":"sinisterchipmunk@gmail.com"},{"url":"http://hughsk.io/","name":"Hugh Kennedy","email":"hughskennedy@gmail.com"}],"homepage":"https://github.com/gl-modules/gl-mat2","bugs":{"url":"https://github.com/gl-modules/gl-mat2/issues"},"dist":{"shasum":"142505730a5c2fe1e9f25d9ece3d0d6cc2710a30","tarball":"https://registry.npmjs.org/gl-mat2/-/gl-mat2-1.0.1.tgz","integrity":"sha512-oHgZ3DalAo9qAhMZM9QigXosqotcUCsgxarwrinipaqfSHvacI79Dzs72gY+oT4Td1kDQKEsG0RyX6mb02VVHA==","signatures":[{"sig":"MEUCIEHawhLi+Bx3CTDjyLhCBFaR5bbOY8OmWmg7Q4zmeTsdAiEAk+nAPExyB9ArXigRAi0/WBbQRmtZ3jlIWFnQp4JmJmg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"142505730a5c2fe1e9f25d9ece3d0d6cc2710a30","gitHead":"d6a04d55d605150240dc8e57ca7d2821aaa23c56","scripts":{"get-docs":"cat *.js | dox --api"},"_npmUser":{"name":"substack","email":"substack@gmail.com"},"repository":{"url":"git://github.com/gl-modules/gl-mat2.git","type":"git"},"_npmVersion":"4.6.1","description":"gl-matrix's mat2, split into smaller pieces","directories":{},"_nodeVersion":"6.3.1","dependencies":{},"devDependencies":{"dox":"git://github.com/hughsk/dox.git#api-context"},"_npmOperationalInternal":{"tmp":"tmp/gl-mat2-1.0.1.tgz_1504476689947_0.5208562214393169","host":"s3://npm-registry-packages"}}},"time":{"created":"2014-07-17T09:14:00.991Z","modified":"2026-08-18T16:34:18.161Z","1.0.0":"2014-07-17T09:14:00.991Z","1.0.1":"2017-09-03T22:11:30.083Z"},"bugs":{"url":"https://github.com/gl-modules/gl-mat2/issues"},"license":{"url":"http://github.com/gl-modules/gl-mat2/blob/master/LICENSE.md","type":"zlib"},"homepage":"https://github.com/gl-modules/gl-mat2","keywords":["gl-matrix","matrix","maths"],"repository":{"url":"git://github.com/gl-modules/gl-mat2.git","type":"git"},"description":"gl-matrix's mat2, split into smaller pieces","contributors":[{"name":"Brandon Jones","email":"tojiro@gmail.com"},{"name":"Colin MacKenzie IV","email":"sinisterchipmunk@gmail.com"},{"url":"http://hughsk.io/","name":"Hugh Kennedy","email":"hughskennedy@gmail.com"}],"maintainers":[{"email":"mikolalysenko@gmail.com","name":"mikolalysenko"},{"email":"wwwtyro@gmail.com","name":"wwwtyro"},{"email":"thibaut.seguy@gmail.com","name":"thibauts"},{"email":"me@mikkoh.com","name":"mikkoh"},{"email":"dark.owl0753@fastmail.com","name":"yoshuawuyts"},{"email":"dave.des@gmail.com","name":"mattdesl"},{"email":"hughskennedy@gmail.com","name":"hughsk"},{"email":"chris@neversaw.us","name":"chrisdickinson"},{"email":"tatum.creative@gmail.com","name":"tatumcreative"}],"readme":"# gl-mat2 [![stable](http://badges.github.io/stability-badges/dist/stable.svg)](http://github.com/badges/stability-badges)\n\nPart of a fork of [@toji](http://github.com/toji)'s\n[gl-matrix](http://github.com/toji/gl-matrix) split into smaller pieces: this\npackage contains `glMatrix.mat2`.\n\n## Usage\n\n[![NPM](https://nodei.co/npm/gl-mat2.png)](https://nodei.co/npm/gl-mat2/)\n\n### `mat2 = require('gl-mat2')`\n\nWill load all of the module's functionality and expose it on a single\nobject. Note that any of the methods may also be required directly\nfrom their files.\n\nFor example, the following are equivalent:\n\n``` javascript\nvar scale = require('gl-mat2').scale\nvar scale = require('gl-mat2/scale')\n```\n\n## API\n\n  - [mat2.adjoint()](#mat2adjointoutmat2amat2)\n  - [mat2.copy()](#mat2copyoutmat2amat2)\n  - [mat2.create()](#mat2create)\n  - [mat2.determinant()](#mat2determinantamat2)\n  - [mat2.frob()](#mat2frobamat2)\n  - [mat2.identity()](#mat2identityoutmat2)\n  - [mat2.invert()](#mat2invertoutmat2amat2)\n  - [mat2.ldu()](#mat2ldulmat2dmat2umat2amat2)\n  - [mat2.multiply()](#mat2multiplyoutmat2amat2bmat2)\n  - [mat2.rotate()](#mat2rotateoutmat2amat2radnumber)\n  - [mat2.scale()](#mat2scaleoutmat2amat2vvec2)\n  - [mat2.transpose()](#mat2transposeoutmat2amat2)\n\n### `mat2.adjoint(out:mat2, a:mat2)`\n\n  Calculates the adjugate of a mat2\n\n### `mat2.copy(out:mat2, a:mat2)`\n\n  Copy the values from one mat2 to another\n\n### `mat2.create()`\n\n  Creates a new identity mat2\n\n### `mat2.determinant(a:mat2)`\n\n  Calculates the determinant of a mat2\n\n### `mat2.frob(a:mat2)`\n\n  Returns Frobenius norm of a mat2\n\n### `mat2.identity(out:mat2)`\n\n  Set a mat2 to the identity matrix\n\n### `mat2.invert(out:mat2, a:mat2)`\n\n  Inverts a mat2\n\n### `mat2.ldu(L:mat2, D:mat2, U:mat2, a:mat2)`\n\n  Returns L, D and U matrices (Lower triangular, Diagonal and Upper triangular) by factorizing the input matrix\n\n### `mat2.multiply(out:mat2, a:mat2, b:mat2)`\n\n  Multiplies two mat2's\n\n### `mat2.rotate(out:mat2, a:mat2, rad:Number)`\n\n  Rotates a mat2 by the given angle\n\n### `mat2.scale(out:mat2, a:mat2, v:vec2)`\n\n  Scales the mat2 by the dimensions in the given vec2\n\n### `mat2.transpose(out:mat2, a:mat2)`\n\n  Transpose the values of a mat2\n\n## License\n\n[zlib](http://en.wikipedia.org/wiki/Zlib_License). See [LICENSE.md](https://github.com/stackgl/gl-mat2/blob/master/LICENSE.md) for details.\n","readmeFilename":"README.md"}