Main
Vectors
Matrix
Matrix Manipulation
Transformation Matrices
Angles
Random
Bezier Curve
Equations
Path Movement
Color
Linear Interpolation
Derivatives
Collision Detection
Animation
Circle And Ellipse
Sequence
Combinatorics
Other

Node.js Usage

The library can also be used in Node.js.

npm install mz-math

Or using Yarn:

yarn add mz-svg

Call any mzMath API or function:

const { setDecimalPlaces } = require('mz-math');

const rounded = setDecimalPlaces(Math.PI, 2);
console.log(rounded);
Previous
Browser Usage
Next
Vectors