It's a library based on Victor but with functions that don't modify vectors.
npm install immutable-vector2d --save
var Vector = require('immutable-vector2d');
var vec = new Vector(42, 1337);
npm test
It's a library based on Victor but with functions that don't modify vectors.
npm install immutable-vector2d --save
var Vector = require('immutable-vector2d');
var vec = new Vector(42, 1337);
npm test