mz-math
v3.0.26
Published
mzMath - a collection of TypeScript-based math helpers.
Downloads
2,059
Maintainers
Keywords
Readme
mzMath - a collection of TypeScript-based math helpers 🚀
This project is a collection of TypeScript math helpers and utilities for the browser and Node.js. The modular approach allows to select only the required functions. It works well with all modern bundlers and supports tree shaking 🌲. The library is built using immutable/pure functions.
Documentation 🔖
Main
Vectors
- Vectors
- Vectors Sum
- Vectors Subtraction
- Multiply by Scalar
- Divide by Scalar
- Vector Length
- Normalized (Unit) Vector
- Dot Product
- Cross Product
- Distance Between Vectors
- Vector Initialization
- Vectors Equality
- Get Normal
Matrix
- Matrix
- Matrix Sum
- Matrix Subtraction
- Multiply By Scalar
- Divide By Scalar
- Matrix Transposition
- Matrix Multiplication
- Multiply Matrix By Vector
- Matrix Determinant
- Inverse Matrix
- Matrix Singularity
- Adjugate Matrix
- Get Matrix Minor
Matrix Manipulation
- Matrix Initialization
- Matrix Equality
- Matrix Deep Copy
- Append Or Prepend Row
- Append Or Prepend Column
- Remove Row Or Column
- Get Column
- Reset Matrix
Transformation Matrices
- Translation Matrix
- Rotation Matrix
- Rotate Around Point
- Scale And Stretch Matrix
- Scale Around Point
- Reflection Matrix
- Shearing Matrix
- Matrix To Css Transform
Angles
- Vector Angle
- Angle Between Vectors
- Degrees And Radians
- Angles Distance
- Is Angle Between
- Is Clockwise
- Percent To Angle
Random
- Get Random Number In Range
- Get Random Integer
- Get Random Boolean
- Get Random Item From Array
- Random Id Or Guid
Bezier Curve
Equations
Path Movement
Color
Linear Interpolation
Derivatives
Collision Detection
Animation
Circle And Ellipse
Sequence
Combinatorics
Other
- Set Decimal Places
- Convert String To Number
- Square In Circle
- Modulo
- Convert Range
- Check If Ranges Overlap
- Check If Value Is Number
- Polar To Cartesian
- Temperature Conversion
- Series
_______ _______ _______ _______ _________
( )/ ___ )( )( ___ )\__ __/|\ /|
| () () |\/ ) || () () || ( ) | ) ( | ) ( |
| || || | / )| || || || (___) | | | | (___) |
| |(_)| | / / | |(_)| || ___ | | | | ___ |
| | | | / / | | | || ( ) | | | | ( ) |
| ) ( | / (_/\| ) ( || ) ( | | | | ) ( |
|/ \|(_______/|/ \||/ \| )_( |/ \|