Part of a fork of @toji's
gl-matrix split into smaller pieces: this
package contains glMatrix.mat2
.
Will load all of the module's functionality and expose it on a single object. Note that any of the methods may also be required directly from their files.
For example, the following are equivalent:
var scale = require('gl-mat2').scale
var scale = require('gl-mat2/scale')
- mat2.adjoint()
- mat2.copy()
- mat2.create()
- mat2.determinant()
- mat2.frob()
- mat2.identity()
- mat2.invert()
- mat2.ldu()
- mat2.multiply()
- mat2.rotate()
- mat2.scale()
- mat2.transpose()
Calculates the adjugate of a mat2
Copy the values from one mat2 to another
Creates a new identity mat2
Calculates the determinant of a mat2
Returns Frobenius norm of a mat2
Set a mat2 to the identity matrix
Inverts a mat2
Returns L, D and U matrices (Lower triangular, Diagonal and Upper triangular) by factorizing the input matrix
Multiplies two mat2's
Rotates a mat2 by the given angle
Scales the mat2 by the dimensions in the given vec2
Transpose the values of a mat2
zlib. See LICENSE.md for details.