0.1.0 • Published 11 years ago
xyzed v0.1.0
xyzed
A 3-dimensional vector (pronouced X Y Zed)
Installation
npm install xyzed --saveUsage
var Xyz = require('zyzed');
var x = 3, y = 5, z = 7;
var vector = new Xyz(x, y, z);
var result = vector.mul(4);Tests
npm testFunctions
add(vec)Adds a vector to itselfsub(vec)Subtracts a vector from itselfmul(int)Multiplies a vector with a scalarrotate(matrix)Rotation of a vector with a matrixabs()Returns the absolute of the vector
Contributing
Pull requests welcomed. Please lint and supply new/updated tests for your code.
Release history
- 0.1.0 Initial release
0.1.0
11 years ago