Vector3 JavaScript library
new Vector3(x, y, z);
// or
new Vector(otherVector); vector.add(x, y, z);
// or
vector.add(otherVector); vector.substract(x, y, z);
// or
vector.substract(otherVector); vector.multiply(x, y, z);
// or
vector.multiply(otherVector); vector.multiplyBy(number); vector.divide(x, y, z);
// or
vector.divide(otherVector); vector.divideBy(number); vector.length(); vector.dot(otherVector); vector.cross(otherVector); vector.normalize(); vector.angle(otherVector); vector.equal(otherVector); vector.rotate(x, y, z);
// or
vector.rotate(otherVector); vector.clone(otherVector);