jsyg-vect
v1.0.2
Published
Vector constructor for JSYG
Downloads
893
Maintainers
Readme
JSYG.Vect
Vectors constructor for JSYG framework or standalone
Installation
npm install jsyg-vect
Example with webpack
import Vect from "jsyg-vect"
let vect1 = new Vect(5,3)
let vect2 = new Vect(30,12)
console.log( vect1.length() )
console.log( vect1.dot(vect2) )
console.log( vect1.normalize() )