0.2.1 • Published 2 years ago

math-vectors v0.2.1

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

math-vectors

Typescript npm package for dealing with math vectors. Including but not limited to 2D, 3D, ND, Complex.

Install

npm i math-vectors

Usage

Code Example

//import a class to start
import {Vector} from 'math-vectors';

//you can create a Vector passing the single entries...
let a = new Vector(1,0,1,2,1);

//or an Array of numbers!
let b = [5,9,3,0,-1];
let c = new Vector(b);

//expected result: "Vector { components: [ 6, 9, 4, 2, 0 ] }"
console.log(a.add(c));

Docs

You can find all the docs here

Bugs🐛

Report any bug, error or new feature you would like here

0.2.1

2 years ago

0.2.0

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.1

2 years ago