Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Minimum Linear Algebra Library
npm install mecks
mecks was built immutable on purpose and relies on the vecks
vector library.
While developing make sure you use gulp watch
to ease the process of testing your contribution.
Members:
A 2x2 matrix
Construct the matrix using a linearized array
Access an element of the matrix.
Parameters
i: number
, row index
j: number
, column index
Get all elements of the matrix.
Returns: Array.<number>
, linearized data of the matrix
Calculate the determinant of the matrix.
Returns: float
Invert the Matrix.
Returns: Matrix2
Multiply a given vector with this matrix.
Parameters
v: , Multiply a given vector with this matrix.
Returns: Vec2
Add a given righthandside Matrix2 to this Matrix.
Parameters
rhs: , Add a given righthandside Matrix2 to this Matrix.
Returns: Matrix2
Subtract a given righthandside Matrix2 to this Matrix.
Parameters
rhs: , Subtract a given righthandside Matrix2 to this Matrix.
Returns: Matrix2
Multiply the Matrix by a given righthandside Matrix2.
Parameters
rhs: , Multiply the Matrix by a given righthandside Matrix2.
Returns: Matrix2
Add a Scalar value to the Matrix.
Parameters
s: , Add a Scalar value to the Matrix.
Returns: Matrix2
Subtract a Scalar value from the Matrix.
Parameters
s: , Subtract a Scalar value from the Matrix.
Returns: Matrix2
Multiply the Matrix by a Scalar Value.
Parameters
s: , Multiply the Matrix by a Scalar Value.
Returns: Matrix2
Divide the Matrix by a Scalar Value.
Parameters
s: , Divide the Matrix by a Scalar Value.
Returns: Matrix2
Returns a new Identity Matrix.
Returns: Matrix2
Returns a new Null Matrix.
Returns: Matrix2
Members:
A 3x3 matrix
Construct the matrix using a linearized array
Access an element of the matrix.
Parameters
i: number
, row index
j: number
, column index
Get all elements of the matrix.
Returns: Array.<number>
, linearized data of the matrix
Calculate the determinant of the matrix.
Returns: float
Invert the Matrix.
Returns: Matrix3
Add a given righthandside Matrix4 to this Matrix.
Parameters
rhs: , Add a given righthandside Matrix4 to this Matrix.
Returns: Matrix3
Subtract a given righthandside Matrix4 to this Matrix.
Parameters
rhs: , Subtract a given righthandside Matrix4 to this Matrix.
Returns: Matrix3
Multiply the Matrix by a given righthandside Matrix.
Parameters
rhs: , Multiply the Matrix by a given righthandside Matrix.
Returns: Matrix3
Multiply a given vector
Parameters
rhs: , Multiply a given vector
Returns: Vec3
Add a Scalar value to the Matrix.
Parameters
s: , Add a Scalar value to the Matrix.
Returns: Matrix4
Subtract a Scalar value from the Matrix.
Parameters
s: , Subtract a Scalar value from the Matrix.
Returns: Matrix4
Multiply the Matrix by a Scalar Value.
Parameters
s: , Multiply the Matrix by a Scalar Value.
Returns: Matrix4
Divide the Matrix by a Scalar Value.
Parameters
s: , Divide the Matrix by a Scalar Value.
Returns: Matrix4
Returns a new Identity Matrix.
Returns: Matrix3
Returns a new Null Matrix.
Returns: Matrix3
Members:
A 4x4 matrix
Access an element of the matrix.
Parameters
i: number
, row index
j: number
, column index
Get all elements of the matrix.
Returns: Array.<number>
, linearized data of the matrix
Calculate the determinant of the matrix.
Returns: float
Invert the Matrix.
Returns: Matrix2
Multiply a given vector with this matrix.
Parameters
rhs: , Multiply a given vector with this matrix.
Returns: Vec3
Add a given righthandside Matrix4 to this Matrix.
Parameters
rhs: , Add a given righthandside Matrix4 to this Matrix.
Returns: Matrix4
Subtract a given righthandside Matrix4 to this Matrix.
Parameters
rhs: , Subtract a given righthandside Matrix4 to this Matrix.
Returns: Matrix4
Multiply the Matrix by a given righthandside Matrix4.
Parameters
rhs: , Multiply the Matrix by a given righthandside Matrix4.
Returns: Matrix4
Add a Scalar value to the Matrix.
Parameters
s: , Add a Scalar value to the Matrix.
Returns: Matrix4
Subtract a Scalar value from the Matrix.
Parameters
s: , Subtract a Scalar value from the Matrix.
Returns: Matrix4
Multiply the Matrix by a Scalar Value.
Parameters
s: , Multiply the Matrix by a Scalar Value.
Returns: Matrix4
Divide the Matrix by a Scalar Value.
Parameters
s: , Divide the Matrix by a Scalar Value.
Returns: Matrix4
Returns a new Identity Matrix.
Returns: Matrix4
Returns a new Null Matrix.
Returns: Matrix4
A Plane representation
Project a point onto the plane.
FAQs
Minimum Linear Algebra Library
The npm package mecks receives a total of 29 weekly downloads. As such, mecks popularity was classified as not popular.
We found that mecks demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.