cross

cross product of 3-dimensional vectors

  • cross

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
cross
1.0.09 years ago9 years agoMinified + gzip package size for cross in KB

Readme

cross
cross product
This implementation was ripped directly out of gl-matrix.
example
var cross = require('cross');
var a = process.argv[2].split(',');
var b = process.argv[3].split(',');
console.log(cross([], a, b));

output:
$ node cross.js 3,-3,1 4,9,2
[ -15, -2, 39 ]
methods
var cross = require('cross')

cross(out, a, b)

Save the cross-product of vectors a and b into out, returning out.
install
With npm do:
npm install cross
license
BSD