$ npm install cross
cross product
This implementation was ripped directly out of gl-matrix.
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 ]
var cross = require('cross')
Save the cross-product of vectors a
and b
into out
, returning out
.
With npm do:
npm install cross
BSD
© 2010 - cnpmjs.org x YWFE | Home | YWFE