@m4xdev/vector
v0.0.2
Published
A simple vector 3D library.
Downloads
8
Maintainers
Readme
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}