math-vectors
TypeScript icon, indicating that this package has built-in type declarations

0.2.1 • Public • Published

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

Package Sidebar

Install

npm i math-vectors

Weekly Downloads

0

Version

0.2.1

License

ISC

Unpacked Size

27.6 kB

Total Files

15

Last publish

Collaborators

  • safesintesi