šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

gl-matrix-invert

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gl-matrix-invert

Inverts a matrix in gl-matrix format of any dimension

1.0.0
latest
Source
npm
Version published
Weekly downloads
6.6K
13.1%
Maintainers
1
Weekly downloads
Ā 
Created
Source

gl-matrix-invert

Dimension independent matrix inverse

Example

var invert = require('gl-matrix-invert')


console.log(invert(new Array(9), [1, 0, 0,
                                  0, 1, 0,
                                  -1, 10, 1]))

API

require('gl-matrix-invert')(dest, src)

Computes the inverse of an array matrix in column-major order (as is the convention in WebGL/gl-matrix).

  • src is the input matrix
  • dest is an array which receives the result of the matrix inverse

Returns dst

Notes Currently only works with matrices up to 4x4

Credits

(c) 2014 Mikola Lysenko. MIT License

Keywords

gl-matrix

FAQs

Package last updated on 27 Sep 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts