diff --git a/web/app/math/vector.js b/web/app/math/vector.js index d82875f7..7f3db534 100644 --- a/web/app/math/vector.js +++ b/web/app/math/vector.js @@ -130,6 +130,8 @@ Vector.prototype.toArray = function() { return [this.x, this.y, this.z]; }; +Vector.prototype.data = Vector.prototype.toArray; + Vector.prototype.three = function() { return new THREE.Vector3(this.x, this.y, this.z); };