0.1.0 • Published 3 months ago
@koodu-platform/vector v0.1.0
Vector
A JavaScript library for working with 2D and 3D vectors.
Installation
You can install the Vector library using npm:
npm install @koodu-platform/vector
Usage
import {Vec2,Vec3 } from '@koodu-platform/vector';
const v1 = new Vec2(1, 2);
const v2 = new Vec2(3, 4);
const v3 = v1.add(v2);
console.log(v3); // Vec2 { x: 4, y: 6 }
License
Vector is MIT licensed.
0.1.0
3 months ago