Gathering detailed insights and metrics for gl-mat4
Gathering detailed insights and metrics for gl-mat4
Gathering detailed insights and metrics for gl-mat4
Gathering detailed insights and metrics for gl-mat4
npm install gl-mat4
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
79 Stars
44 Commits
14 Forks
17 Watching
1 Branches
20 Contributors
Updated on 17 Jan 2024
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-0.5%
37,890
Compared to previous day
Last week
0.8%
197,207
Compared to previous week
Last month
7.7%
842,028
Compared to previous month
Last year
14%
10,025,839
Compared to previous year
1
Part of a fork of @toji's
gl-matrix split into smaller pieces: this
package contains glMatrix.mat4
.
mat4 = require('gl-mat4')
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:
1var scale = require('gl-mat4').scale 2var scale = require('gl-mat4/scale')
Adds two mat4's
Calculates the adjugate of a mat4
Creates a new mat4 initialized with values from an existing matrix
Copy the values from one mat4 to another
Creates a new identity mat4
Calculates the determinant of a mat4
Creates a matrix from a quaternion rotation.
Creates a matrix from a given angle around a given axis This is equivalent to (but much faster than):
1 mat4.identity(dest); 2 mat4.rotate(dest, dest, rad, axis);
Creates a matrix from a quaternion rotation and vector translation. This is equivalent to (but much faster than):
1 mat4.identity(dest); 2 mat4.translate(dest, vec); 3 var quatMat = mat4.create(); 4 quat4.toMat4(quat, quatMat); 5 mat4.multiply(dest, quatMat);
Creates a matrix from a vector scaling. This is equivalent to (but much faster than):
1 mat4.identity(dest); 2 mat4.translate(dest, dest, vec);
Creates a matrix from a vector translation. This is equivalent to (but much faster than):
1 mat4.identity(dest); 2 mat4.translate(dest, dest, vec);
Creates a matrix from a vector translation This is equivalent to (but much faster than):
1 mat4.identity(dest); 2 mat4.translate(dest, dest, vec);
Creates a matrix from the given angle around the X axis This is equivalent to (but much faster than):
1 mat4.identity(dest)
2 mat4.rotateX(dest, dest, rad)
Creates a matrix from the given angle around the Y axis This is equivalent to (but much faster than):
1 mat4.identity(dest)
2 mat4.rotateY(dest, dest, rad)
Creates a matrix from the given angle around the Z axis This is equivalent to (but much faster than):
1 mat4.identity(dest)
2 mat4.rotateZ(dest, dest, rad)
Generates a frustum matrix with the given bounds
Set a mat4 to the identity matrix
Inverts a mat4
Generates a look-at matrix with the given eye position, focal point, and up axis
Multiplies two mat4's
Generates a orthogonal projection matrix with the given bounds
Generates a perspective projection matrix with the given bounds
Generates a perspective projection matrix with the given field of view.
Rotates a mat4 by the given angle
Rotates a matrix by the given angle around the X axis
Rotates a matrix by the given angle around the Y axis
Rotates a matrix by the given angle around the Z axis
Scales the mat4 by the dimensions in the given vec3
Returns a string representation of a mat4
Subtracts two mat4's
Translate a mat4 by the given vector
Transpose the values of a mat4
zlib. See LICENSE.md for details.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 4/19 approved changesets -- score normalized to 2
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More