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.
- 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 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 Initialization
- Matrix Equality
- Matrix Deep Copy
- Append Or Prepend Row
- Append Or Prepend Column
- Remove Row Or Column
- Get Column
- Reset Matrix
- Translation Matrix
- Rotation Matrix
- Rotate Around Point
- Scale And Stretch Matrix
- Scale Around Point
- Reflection Matrix
- Shearing Matrix
- Matrix To Css Transform
- Vector Angle
- Angle Between Vectors
- Degrees And Radians
- Angles Distance
- Is Angle Between
- Is Clockwise
- Percent To Angle
- Get Random Number In Range
- Get Random Integer
- Get Random Boolean
- Get Random Item From Array
- Random Id Or Guid
- Get Point On Quadratic Bezier Curve
- Get Point On Cubic Bezier Curve
- Tangent
- Normal
- Extrema
- Bounding Box
- 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
- Greatest Common Divisor
_______ _______ _______ _______ _________
( )/ ___ )( )( ___ )\__ __/|\ /|
| () () |\/ ) || () () || ( ) | ) ( | ) ( |
| || || | / )| || || || (___) | | | | (___) |
| |(_)| | / / | |(_)| || ___ | | | | ___ |
| | | | / / | | | || ( ) | | | | ( ) |
| ) ( | / (_/\| ) ( || ) ( | | | | ) ( |
|/ \|(_______/|/ \||/ \| )_( |/ \|