{"id":20778038,"url":"https://github.com/stackgl/gl-mat2","last_synced_at":"2025-07-09T07:04:43.887Z","repository":{"id":18724555,"uuid":"21935745","full_name":"stackgl/gl-mat2","owner":"stackgl","description":"gl-matrix's mat2, split into smaller pieces","archived":false,"fork":false,"pushed_at":"2019-11-13T18:44:06.000Z","size":6,"stargazers_count":8,"open_issues_count":1,"forks_count":3,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-07-05T07:07:06.623Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"zlib","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stackgl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-07-17T09:14:12.000Z","updated_at":"2024-12-20T20:31:21.000Z","dependencies_parsed_at":"2022-07-22T18:48:43.345Z","dependency_job_id":null,"html_url":"https://github.com/stackgl/gl-mat2","commit_stats":null,"previous_names":["gl-modules/gl-mat2"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/stackgl/gl-mat2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackgl%2Fgl-mat2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackgl%2Fgl-mat2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackgl%2Fgl-mat2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackgl%2Fgl-mat2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stackgl","download_url":"https://codeload.github.com/stackgl/gl-mat2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackgl%2Fgl-mat2/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263707021,"owners_count":23499080,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-17T13:18:42.636Z","updated_at":"2025-07-09T07:04:43.868Z","avatar_url":"https://github.com/stackgl.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstackgl%2Fgl-mat2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstackgl%2Fgl-mat2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstackgl%2Fgl-mat2/lists"}