0.0.2 • Published 1 year ago
@m4xdev/vector v0.0.2
Vector 1D/2D/3D library
A simple light weight vector library with vector utility functions. All utilities are immutable and return a new vector object literal.
Example
const vector1 = Vector3.create(5,5);
const vector2 = Vector3.create(10,10);
const sumVector = Vector3.add(vector1, vector2);
// sumVector === {x: 15, y: 15, z:0}