New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

friendly-vectors

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

friendly-vectors

A package for 2D and 3D vector math.

latest
Source
npmnpm
Version
0.3.2
Version published
Maintainers
1
Created
Source

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.

Keywords

vector

FAQs

Package last updated on 19 Jul 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts