{"_id":"gl-mat4","_rev":"217689","name":"gl-mat4","description":"gl-matrix's mat4, split into smaller pieces","dist-tags":{"latest":"1.2.0"},"maintainers":[{"name":"chrisdickinson","email":"chris@neversaw.us"},{"name":"hughsk","email":""},{"name":"mattdesl","email":""},{"name":"yoshuawuyts","email":""}],"time":{"modified":"2023-03-24T09:18:07.000Z","created":"2014-08-18T17:52:57.722Z","1.2.0":"2018-04-19T20:30:34.747Z","1.1.4":"2015-05-21T14:30:20.585Z","1.1.3":"2015-05-05T13:35:53.559Z","1.1.2":"2015-02-09T04:12:55.994Z","1.1.1":"2015-02-09T04:12:35.248Z","1.1.0":"2015-02-09T04:11:08.757Z","1.0.3":"2015-02-04T23:14:37.304Z","1.0.2":"2015-01-27T22:44:05.952Z","1.0.1":"2014-11-15T21:40:44.253Z","1.0.0":"2014-08-18T17:52:57.722Z"},"users":{},"repository":{"type":"git","url":"git+https://github.com/stackgl/gl-mat4.git"},"versions":{"1.2.0":{"name":"gl-mat4","version":"1.2.0","description":"gl-matrix's mat4, split into smaller pieces","main":"index.js","scripts":{"get-docs":"cat *.js | dox --api"},"repository":{"type":"git","url":"git+https://github.com/stackgl/gl-mat4.git"},"keywords":["gl-matrix","matrix","math","gl","mat4","mat4x4","4x4","mat","vector","maths"],"license":"Zlib","contributors":[{"name":"Brandon Jones","email":"tojiro@gmail.com"},{"name":"Colin MacKenzie IV","email":"sinisterchipmunk@gmail.com"}],"dependencies":{},"devDependencies":{"dox":"git://github.com/hughsk/dox.git#api-context"},"bugs":{"url":"https://github.com/stackgl/gl-mat4/issues"},"homepage":"https://github.com/stackgl/gl-mat4","gitHead":"28102b8791594310960715273a983a43068a41ed","_id":"gl-mat4@1.2.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.1","_npmUser":{"name":"rreusser","email":"rsreusser@gmail.com"},"dist":{"shasum":"49d8a7636b70aa00819216635f4a3fd3f4669b26","size":9017,"noattachment":false,"key":"/gl-mat4/-/gl-mat4-1.2.0.tgz","tarball":"http://name.csiicloud.com:7001/gl-mat4/download/gl-mat4-1.2.0.tgz"},"maintainers":[{"name":"chrisdickinson","email":"chris@neversaw.us"},{"name":"hughsk","email":""},{"name":"mattdesl","email":""},{"name":"yoshuawuyts","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gl-mat4_1.2.0_1524169834689_0.15028448294471541"},"_hasShrinkwrap":false,"publish_time":1524169834747,"_cnpm_publish_time":1524169834747,"_cnpmcore_publish_time":"2021-12-16T19:36:53.359Z"},"1.1.4":{"name":"gl-mat4","version":"1.1.4","description":"gl-matrix's mat4, split into smaller pieces","main":"index.js","scripts":{"get-docs":"cat *.js | dox --api"},"repository":{"type":"git","url":"https://github.com/stackgl/gl-mat4"},"keywords":["gl-matrix","matrix","math","gl","mat4","mat4x4","4x4","mat","vector","maths"],"license":"Zlib","contributors":[{"name":"Brandon Jones","email":"tojiro@gmail.com"},{"name":"Colin MacKenzie IV","email":"sinisterchipmunk@gmail.com"}],"dependencies":{},"devDependencies":{"dox":"git://github.com/hughsk/dox#api-context"},"bugs":{"url":"https://github.com/stackgl/gl-mat4/issues"},"homepage":"https://github.com/stackgl/gl-mat4","gitHead":"c2e2de728fe7eba592f74cd02266100cc21ec89a","_id":"gl-mat4@1.1.4","_shasum":"1e895b55892e56a896867abd837d38f37a178086","_from":".","_npmVersion":"2.1.18","_nodeVersion":"0.10.32","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"dist":{"shasum":"1e895b55892e56a896867abd837d38f37a178086","size":8193,"noattachment":false,"key":"/gl-mat4/-/gl-mat4-1.1.4.tgz","tarball":"http://name.csiicloud.com:7001/gl-mat4/download/gl-mat4-1.1.4.tgz"},"maintainers":[{"name":"chrisdickinson","email":"chris@neversaw.us"},{"name":"hughsk","email":""},{"name":"mattdesl","email":""},{"name":"yoshuawuyts","email":""}],"directories":{},"publish_time":1432218620585,"_hasShrinkwrap":false,"_cnpm_publish_time":1432218620585,"_cnpmcore_publish_time":"2021-12-16T19:36:53.580Z"},"1.1.3":{"name":"gl-mat4","version":"1.1.3","description":"gl-matrix's mat4, split into smaller pieces","main":"index.js","scripts":{"get-docs":"cat *.js | dox --api"},"repository":{"type":"git","url":"git+https://github.com/stackgl/gl-mat4.git"},"keywords":["gl-matrix","matrix","math","gl","mat4","mat4x4","4x4","mat","vector","maths"],"license":{"type":"Zlib","url":"http://github.com/stackgl/gl-mat4/blob/master/LICENSE.md"},"contributors":[{"name":"Brandon Jones","email":"tojiro@gmail.com"},{"name":"Colin MacKenzie IV","email":"sinisterchipmunk@gmail.com"}],"dependencies":{},"devDependencies":{"dox":"git://github.com/hughsk/dox.git#api-context"},"bugs":{"url":"https://github.com/stackgl/gl-mat4/issues"},"homepage":"https://github.com/stackgl/gl-mat4","gitHead":"24dbb2b2502229f6657ae52ddb31818380aa3b58","_id":"gl-mat4@1.1.3","_shasum":"f3969e8a855f083bf742d1450a6e03c129dc3c63","_from":".","_npmVersion":"2.8.2","_nodeVersion":"0.10.32","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"dist":{"shasum":"f3969e8a855f083bf742d1450a6e03c129dc3c63","size":8198,"noattachment":false,"key":"/gl-mat4/-/gl-mat4-1.1.3.tgz","tarball":"http://name.csiicloud.com:7001/gl-mat4/download/gl-mat4-1.1.3.tgz"},"maintainers":[{"name":"chrisdickinson","email":"chris@neversaw.us"},{"name":"hughsk","email":""},{"name":"mattdesl","email":""},{"name":"yoshuawuyts","email":""}],"directories":{},"publish_time":1430832953559,"_hasShrinkwrap":false,"_cnpm_publish_time":1430832953559,"_cnpmcore_publish_time":"2021-12-16T19:36:53.774Z"},"1.1.2":{"name":"gl-mat4","version":"1.1.2","description":"gl-matrix's mat4, split into smaller pieces","main":"index.js","scripts":{"get-docs":"cat *.js | dox --api"},"repository":{"type":"git","url":"https://github.com/stackgl/gl-mat4"},"keywords":["gl-matrix","matrix","math","gl","mat4","mat4x4","4x4","mat","vector","maths"],"license":{"type":"zlib","url":"http://github.com/stackgl/gl-mat4/blob/master/LICENSE.md"},"contributors":[{"name":"Brandon Jones","email":"tojiro@gmail.com"},{"name":"Colin MacKenzie IV","email":"sinisterchipmunk@gmail.com"}],"dependencies":{},"devDependencies":{"dox":"git://github.com/hughsk/dox#api-context"},"bugs":{"url":"https://github.com/stackgl/gl-mat4/issues"},"homepage":"https://github.com/stackgl/gl-mat4","gitHead":"a49818d7fec9fe8b862f2cb6073c44e21c61a9ba","_id":"gl-mat4@1.1.2","_shasum":"39d78be64bc803edfacdff6ad5e0d47edf9b97cb","_from":".","_npmVersion":"2.4.1","_nodeVersion":"0.10.35","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"maintainers":[{"name":"chrisdickinson","email":"chris@neversaw.us"},{"name":"hughsk","email":""},{"name":"mattdesl","email":""},{"name":"yoshuawuyts","email":""}],"dist":{"shasum":"39d78be64bc803edfacdff6ad5e0d47edf9b97cb","size":8191,"noattachment":false,"key":"/gl-mat4/-/gl-mat4-1.1.2.tgz","tarball":"http://name.csiicloud.com:7001/gl-mat4/download/gl-mat4-1.1.2.tgz"},"directories":{},"publish_time":1423455175994,"_hasShrinkwrap":false,"_cnpm_publish_time":1423455175994,"_cnpmcore_publish_time":"2021-12-16T19:36:53.970Z"},"1.1.1":{"name":"gl-mat4","version":"1.1.1","description":"gl-matrix's mat4, split into smaller pieces","main":"index.js","scripts":{"get-docs":"cat *.js | dox --api"},"repository":{"type":"git","url":"https://github.com/stackgl/gl-mat4"},"keywords":["gl-matrix","matrix","math","gl","mat4","mat4x4","4x4","mat","vector","maths"],"license":{"type":"zlib","url":"http://github.com/stackgl/gl-mat4/blob/master/LICENSE.md"},"contributors":[{"name":"Brandon Jones","email":"tojiro@gmail.com"},{"name":"Colin MacKenzie IV","email":"sinisterchipmunk@gmail.com"}],"dependencies":{},"devDependencies":{"dox":"git://github.com/hughsk/dox#api-context"},"bugs":{"url":"https://github.com/stackgl/gl-mat4/issues"},"homepage":"https://github.com/stackgl/gl-mat4","gitHead":"dc1fd91505bb00338821d38335b2fc1672e35ad0","_id":"gl-mat4@1.1.1","_shasum":"49aaab982d510fc152e3214c6d002a94d87e56df","_from":".","_npmVersion":"2.4.1","_nodeVersion":"0.10.35","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"maintainers":[{"name":"chrisdickinson","email":"chris@neversaw.us"},{"name":"hughsk","email":""},{"name":"mattdesl","email":""},{"name":"yoshuawuyts","email":""}],"dist":{"shasum":"49aaab982d510fc152e3214c6d002a94d87e56df","size":8196,"noattachment":false,"key":"/gl-mat4/-/gl-mat4-1.1.1.tgz","tarball":"http://name.csiicloud.com:7001/gl-mat4/download/gl-mat4-1.1.1.tgz"},"directories":{},"publish_time":1423455155248,"_hasShrinkwrap":false,"_cnpm_publish_time":1423455155248,"_cnpmcore_publish_time":"2021-12-16T19:36:54.195Z"},"1.1.0":{"name":"gl-mat4","version":"1.1.0","description":"gl-matrix's mat4, split into smaller pieces","main":"index.js","scripts":{"get-docs":"cat *.js | dox --api"},"repository":{"type":"git","url":"https://github.com/stackgl/gl-mat4"},"keywords":["gl-matrix","matrix","math","gl","mat4","mat4x4","4x4","mat","vector","maths"],"license":{"type":"zlib","url":"http://github.com/stackgl/gl-mat4/blob/master/LICENSE.md"},"contributors":[{"name":"Brandon Jones","email":"tojiro@gmail.com"},{"name":"Colin MacKenzie IV","email":"sinisterchipmunk@gmail.com"}],"dependencies":{},"devDependencies":{"dox":"git://github.com/hughsk/dox#api-context"},"bugs":{"url":"https://github.com/stackgl/gl-mat4/issues"},"homepage":"https://github.com/stackgl/gl-mat4","gitHead":"6c8e134f90344019824b32e347a969b85939cb28","_id":"gl-mat4@1.1.0","_shasum":"b2e2d31cae520ab6ef0223e15da81a88b00c5d0c","_from":".","_npmVersion":"2.4.1","_nodeVersion":"0.10.35","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"maintainers":[{"name":"chrisdickinson","email":"chris@neversaw.us"},{"name":"hughsk","email":""},{"name":"mattdesl","email":""},{"name":"yoshuawuyts","email":""}],"dist":{"shasum":"b2e2d31cae520ab6ef0223e15da81a88b00c5d0c","size":8184,"noattachment":false,"key":"/gl-mat4/-/gl-mat4-1.1.0.tgz","tarball":"http://name.csiicloud.com:7001/gl-mat4/download/gl-mat4-1.1.0.tgz"},"directories":{},"publish_time":1423455068757,"_hasShrinkwrap":false,"_cnpm_publish_time":1423455068757,"_cnpmcore_publish_time":"2021-12-16T19:36:54.432Z"},"1.0.3":{"name":"gl-mat4","version":"1.0.3","description":"gl-matrix's mat4, split into smaller pieces","main":"index.js","scripts":{"get-docs":"cat *.js | dox --api"},"repository":{"type":"git","url":"https://github.com/stackgl/gl-mat4"},"keywords":["gl-matrix","matrix","math","gl","mat4","mat4x4","4x4","mat","vector","maths"],"license":{"type":"zlib","url":"http://github.com/stackgl/gl-mat4/blob/master/LICENSE.md"},"contributors":[{"name":"Brandon Jones","email":"tojiro@gmail.com"},{"name":"Colin MacKenzie IV","email":"sinisterchipmunk@gmail.com"}],"dependencies":{},"devDependencies":{"dox":"git://github.com/hughsk/dox#api-context"},"bugs":{"url":"https://github.com/stackgl/gl-mat4/issues"},"homepage":"https://github.com/stackgl/gl-mat4","gitHead":"bd3ad789e6638d559f37464b085597bdcbcc9d39","_id":"gl-mat4@1.0.3","_shasum":"977badcab90d33e25bfc9da21aa0f546edf7c266","_from":".","_npmVersion":"2.4.1","_nodeVersion":"0.10.35","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"maintainers":[{"name":"chrisdickinson","email":"chris@neversaw.us"},{"name":"hughsk","email":""},{"name":"mattdesl","email":""},{"name":"yoshuawuyts","email":""}],"dist":{"shasum":"977badcab90d33e25bfc9da21aa0f546edf7c266","size":7817,"noattachment":false,"key":"/gl-mat4/-/gl-mat4-1.0.3.tgz","tarball":"http://name.csiicloud.com:7001/gl-mat4/download/gl-mat4-1.0.3.tgz"},"directories":{},"publish_time":1423091677304,"_hasShrinkwrap":false,"_cnpm_publish_time":1423091677304,"_cnpmcore_publish_time":"2021-12-16T19:36:54.613Z"},"1.0.2":{"name":"gl-mat4","version":"1.0.2","description":"gl-matrix's mat4, split into smaller pieces","main":"index.js","scripts":{"get-docs":"cat *.js | dox --api"},"repository":{"type":"git","url":"https://github.com/stackgl/gl-mat4"},"keywords":["gl-matrix","matrix","math","gl","mat4","mat4x4","4x4","mat","vector","maths"],"license":{"type":"zlib","url":"http://github.com/stackgl/gl-mat4/blob/master/LICENSE.md"},"contributors":[{"name":"Brandon Jones","email":"tojiro@gmail.com"},{"name":"Colin MacKenzie IV","email":"sinisterchipmunk@gmail.com"}],"dependencies":{},"devDependencies":{"dox":"git://github.com/hughsk/dox#api-context"},"bugs":{"url":"https://github.com/stackgl/gl-mat4/issues"},"homepage":"https://github.com/stackgl/gl-mat4","gitHead":"e1b61b49e5f62c6ac2ca5fbacc7843f9f16335e6","_id":"gl-mat4@1.0.2","_shasum":"eef32ff890fc75ac49dcac8d7f8cdf12bb8e5c8f","_from":".","_npmVersion":"2.4.1","_nodeVersion":"0.10.35","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"maintainers":[{"name":"chrisdickinson","email":"chris@neversaw.us"},{"name":"hughsk","email":""},{"name":"mattdesl","email":""},{"name":"yoshuawuyts","email":""}],"dist":{"shasum":"eef32ff890fc75ac49dcac8d7f8cdf12bb8e5c8f","size":7789,"noattachment":false,"key":"/gl-mat4/-/gl-mat4-1.0.2.tgz","tarball":"http://name.csiicloud.com:7001/gl-mat4/download/gl-mat4-1.0.2.tgz"},"directories":{},"publish_time":1422398645952,"_hasShrinkwrap":false,"_cnpm_publish_time":1422398645952,"_cnpmcore_publish_time":"2021-12-16T19:36:54.867Z"},"1.0.1":{"name":"gl-mat4","version":"1.0.1","description":"gl-matrix's mat4, split into smaller pieces","main":"index.js","scripts":{"get-docs":"cat *.js | dox --api"},"repository":{"type":"git","url":"https://github.com/stackgl/gl-mat4"},"keywords":["gl-matrix","matrix","math","gl","mat4","mat4x4","4x4","mat","vector","maths"],"license":{"type":"zlib","url":"http://github.com/stackgl/gl-mat4/blob/master/LICENSE.md"},"contributors":[{"name":"Brandon Jones","email":"tojiro@gmail.com"},{"name":"Colin MacKenzie IV","email":"sinisterchipmunk@gmail.com"}],"dependencies":{},"devDependencies":{"dox":"git://github.com/hughsk/dox#api-context"},"bugs":{"url":"https://github.com/stackgl/gl-mat4/issues"},"homepage":"https://github.com/stackgl/gl-mat4","gitHead":"580de73132f12e332c0bb2b9b7ed3db9f1ba875d","_id":"gl-mat4@1.0.1","_shasum":"e3bb53581c5250b9602783591d0ef2f96a59f77e","_from":".","_npmVersion":"2.1.4","_nodeVersion":"0.10.32","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"maintainers":[{"name":"chrisdickinson","email":"chris@neversaw.us"},{"name":"hughsk","email":""},{"name":"mattdesl","email":""},{"name":"yoshuawuyts","email":""}],"dist":{"shasum":"e3bb53581c5250b9602783591d0ef2f96a59f77e","size":7786,"noattachment":false,"key":"/gl-mat4/-/gl-mat4-1.0.1.tgz","tarball":"http://name.csiicloud.com:7001/gl-mat4/download/gl-mat4-1.0.1.tgz"},"directories":{},"publish_time":1416087644253,"_hasShrinkwrap":false,"_cnpm_publish_time":1416087644253,"_cnpmcore_publish_time":"2021-12-16T19:36:55.081Z"},"1.0.0":{"name":"gl-mat4","version":"1.0.0","description":"gl-matrix's mat4, split into smaller pieces","main":"index.js","scripts":{"get-docs":"cat *.js | dox --api"},"repository":{"type":"git","url":"https://github.com/stackgl/gl-mat4"},"keywords":["gl-matrix","matrix","math","gl","mat4","mat4x4","4x4","mat","vector","maths"],"license":{"type":"zlib","url":"http://github.com/stackgl/gl-mat4/blob/master/LICENSE.md"},"contributors":[{"name":"Brandon Jones","email":"tojiro@gmail.com"},{"name":"Colin MacKenzie IV","email":"sinisterchipmunk@gmail.com"},{"name":"Matt DesLauriers","email":"dave.des@gmail.com"}],"dependencies":{},"devDependencies":{"dox":"git://github.com/hughsk/dox#api-context"},"bugs":{"url":"https://github.com/stackgl/gl-mat4/issues"},"homepage":"https://github.com/stackgl/gl-mat4","gitHead":"8c89c6ebdfc3d6ceb16ff81e18e838f45fecab93","_id":"gl-mat4@1.0.0","_shasum":"74889220d28c0409a0ef17446cc5e4cd781eca28","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"mattdesl","email":"dave.des@gmail.com"},"maintainers":[{"name":"chrisdickinson","email":"chris@neversaw.us"},{"name":"hughsk","email":""},{"name":"mattdesl","email":""},{"name":"yoshuawuyts","email":""}],"dist":{"shasum":"74889220d28c0409a0ef17446cc5e4cd781eca28","size":7831,"noattachment":false,"key":"/gl-mat4/-/gl-mat4-1.0.0.tgz","tarball":"http://name.csiicloud.com:7001/gl-mat4/download/gl-mat4-1.0.0.tgz"},"directories":{},"publish_time":1408384377722,"_hasShrinkwrap":false,"_cnpm_publish_time":1408384377722,"_cnpmcore_publish_time":"2021-12-16T19:36:55.649Z"}},"readme":"# gl-mat4 [![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.mat4`.\n\n## Usage\n\n[![NPM](https://nodei.co/npm/gl-mat4.png)](https://nodei.co/npm/gl-mat4/)\n\n### `mat4 = require('gl-mat4')`\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-mat4').scale\nvar scale = require('gl-mat4/scale')\n```\n\n## API\n\n  - [adjoint()](#adjointoutmat4-amat4)\n  - [clone()](#cloneamat4)\n  - [copy()](#copyoutmat4-amat4)\n  - [create()](#create)\n  - [determinant()](#determinantamat4)\n  - [fromQuat()](#fromquatoutmat4-qquat4)\n  - [fromRotation()](#fromrotationoutmat4-radnumber-axisvec3)\n  - [fromRotationTranslation()](#fromrotationtranslationoutmat4-qquat4-vvec3)\n  - [fromScaling()](#fromscalingoutmat4-vvec3)\n  - [fromTranslation()](#fromtranslationoutmat4-vvec3)\n  - [fromXRotation()](#fromxrotationoutmat4-radnumber)\n  - [fromYRotation()](#fromyrotationoutmat4-radnumber)\n  - [fromZRotation()](#fromzrotationoutmat4-radnumber)\n  - [frustum()](#frustumoutmat4-leftnumber-rightnumber-bottomnumber-topnumber-nearnumber-farnumber)\n  - [identity()](#identityoutmat4)\n  - [invert()](#invertoutmat4-amat4)\n  - [lookAt()](#lookatoutmat4-eyevec3-centervec3-upvec3)\n  - [multiply()](#multiplyoutmat4-amat4-bmat4)\n  - [ortho()](#orthooutmat4-leftnumber-rightnumber-bottomnumber-topnumber-nearnumber-farnumber)\n  - [perspective()](#perspectiveoutmat4-fovynumber-aspectnumber-nearnumber-farnumber)\n  - [perspectiveFromFieldOfView()](#perspectivefromfieldofviewoutmat4-fovobject-nearnumber-farnumber)\n  - [rotate()](#rotateoutmat4-amat4-radnumber-axisvec3)\n  - [rotateX()](#rotatexoutmat4-amat4-radnumber)\n  - [rotateY()](#rotateyoutmat4-amat4-radnumber)\n  - [rotateZ()](#rotatezoutmat4-amat4-radnumber)\n  - [scale()](#scaleoutmat4-amat4-vvec3)\n  - [str()](#strmatmat4)\n  - [translate()](#translateoutmat4-amat4-vvec3)\n  - [transpose()](#transposeoutmat4-amat4)\n\n## adjoint(out:mat4, a:mat4)\n\n  Calculates the adjugate of a mat4\n\n## clone(a:mat4)\n\n  Creates a new mat4 initialized with values from an existing matrix\n\n## copy(out:mat4, a:mat4)\n\n  Copy the values from one mat4 to another\n\n## create()\n\n  Creates a new identity mat4\n\n## determinant(a:mat4)\n\n  Calculates the determinant of a mat4\n\n## fromQuat(out:mat4, q:quat4)\n\n  Creates a matrix from a quaternion rotation.\n\n## fromRotation(out:mat4, rad:number, axis:vec3)\n\n  Creates a matrix from a given angle around a given axis\n  This is equivalent to (but much faster than):\n\n```js\n  mat4.identity(dest);\n  mat4.rotate(dest, dest, rad, axis);\n```\n\n## fromRotationTranslation(out:mat4, q:quat4, v:vec3)\n\n  Creates a matrix from a quaternion rotation and vector translation. This is equivalent to (but much faster than):\n  \n```js\n  mat4.identity(dest);\n  mat4.translate(dest, vec);\n  var quatMat = mat4.create();\n  quat4.toMat4(quat, quatMat);\n  mat4.multiply(dest, quatMat);\n```\n\n## fromScaling(out:mat4, v:vec3)\n  Creates a matrix from a vector scaling. This is equivalent to (but much faster than):\n \n```js\n  mat4.identity(dest);\n  mat4.translate(dest, dest, vec);\n```\n\n## fromTranslation(out:mat4, v:vec3)\n  Creates a matrix from a vector translation. This is equivalent to (but much faster than):\n \n```js\n  mat4.identity(dest);\n  mat4.translate(dest, dest, vec);\n```\n\n## fromTranslation(out:mat4, v:vec3)\n  Creates a matrix from a vector translation\n  This is equivalent to (but much faster than):\n \n```js\n  mat4.identity(dest);\n  mat4.translate(dest, dest, vec);\n```\n\n## fromXRotation(out:mat4, rad:Number)\n\n  Creates a matrix from the given angle around the X axis\n  This is equivalent to (but much faster than):\n  \n```js\n  mat4.identity(dest)\n  mat4.rotateX(dest, dest, rad)\n```\n\n## fromYRotation(out:mat4, rad:Number)\n\n  Creates a matrix from the given angle around the Y axis\n  This is equivalent to (but much faster than):\n  \n```js\n  mat4.identity(dest)\n  mat4.rotateY(dest, dest, rad)\n```\n\n## fromZRotation(out:mat4, rad:Number)\n\n  Creates a matrix from the given angle around the Z axis\n  This is equivalent to (but much faster than):\n  \n```js\n  mat4.identity(dest)\n  mat4.rotateZ(dest, dest, rad)\n```\n\n## frustum(out:mat4, left:Number, right:Number, bottom:Number, top:Number, near:Number, far:Number)\n\n  Generates a frustum matrix with the given bounds\n\n## identity(out:mat4)\n\n  Set a mat4 to the identity matrix\n\n## invert(out:mat4, a:mat4)\n\n  Inverts a mat4\n\n## lookAt(out:mat4, eye:vec3, center:vec3, up:vec3)\n\n  Generates a look-at matrix with the given eye position, focal point, and up axis\n\n## multiply(out:mat4, a:mat4, b:mat4)\n\n  Multiplies two mat4's\n\n## ortho(out:mat4, left:number, right:number, bottom:number, top:number, near:number, far:number)\n\n  Generates a orthogonal projection matrix with the given bounds\n\n## perspective(out:mat4, fovy:number, aspect:number, near:number, far:number)\n\n  Generates a perspective projection matrix with the given bounds\n\n## perspectiveFromFieldOfView(out:mat4, fov:object, near:number, far:number)\n\n  Generates a perspective projection matrix with the given field of view.\n\n## rotate(out:mat4, a:mat4, rad:Number, axis:vec3)\n\n  Rotates a mat4 by the given angle\n\n## rotateX(out:mat4, a:mat4, rad:Number)\n\n  Rotates a matrix by the given angle around the X axis\n\n## rotateY(out:mat4, a:mat4, rad:Number)\n\n  Rotates a matrix by the given angle around the Y axis\n\n## rotateZ(out:mat4, a:mat4, rad:Number)\n\n  Rotates a matrix by the given angle around the Z axis\n\n## scale(out:mat4, a:mat4, v:vec3)\n\n  Scales the mat4 by the dimensions in the given vec3\n\n## str(mat:mat4)\n\n  Returns a string representation of a mat4\n\n## translate(out:mat4, a:mat4, v:vec3)\n\n  Translate a mat4 by the given vector\n\n## transpose(out:mat4, a:mat4)\n\n  Transpose the values of a mat4\n\n## License\n\n[zlib](http://en.wikipedia.org/wiki/Zlib_License). See [LICENSE.md](https://github.com/stackgl/gl-mat4/blob/master/LICENSE.md) for details.\n","_attachments":{},"homepage":"https://github.com/stackgl/gl-mat4","bugs":{"url":"https://github.com/stackgl/gl-mat4/issues"},"license":"Zlib"}