1.0.0 • Published 4 years ago

@wetterben/vector2d v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

vector2d

Very useful small class to perform vector calculations. Very practical as basis for all kinds of simulations and games where objects move through a two-dimensional space.

Get started

npm i vector2d

Use in your JavaScript/Typescript project

import { Vector } from 'vector2d';

const myVector = new Vector(10, 20);

myVector.add(100);
…

const newVector = Vector.add(myVector, 10);
…

Contribute

Feel free to add missing functions or fix things. Just do a PR.

1.0.0

4 years ago