friendly-vectors

0.3.2 • Public • Published

Friendly Vectors

A package for doing 2D and 3D vector math. It provides Vector2D and Vector3D classes with simple human readable methods.

Usage

const {Vector2D} = require('friendly-vectors')
 
let v = new Vector2D(1, 0)
 
let w = new Vector2D(1, 1)
 
let u = Vector2D.tripleCross(v, w, v)
 
console.log(u) // Vector2D { x: 0, y: 1 }

Testing

Coming soon.

TODO:

  • Better Description
  • Full tests
  • Switch to Jest?
  • Usage stats
  • Clean up Vector3D

Feedback ✉️

Website 🌐

js@jacobsmith.tech 📧

https://github.com/limeandcoconut 🐙😸

@limeandcoconut 🐦

Cheers!

License

ISC, see license for details.

License

ISC, see LICENSE.md for details.

Package Sidebar

Install

npm i friendly-vectors

Weekly Downloads

2

Version

0.3.2

License

ISC

Unpacked Size

52 kB

Total Files

12

Last publish

Collaborators

  • limeandcoconut