@koodu-platform/vector

0.1.0 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i @koodu-platform/vector

Weekly Downloads

0

Version

0.1.0

License

see LICENSE file

Unpacked Size

12.7 kB

Total Files

5

Last publish

Collaborators

  • koodu-platform