add alias for the toArray method of Vector

This commit is contained in:
Val Erastov 2017-04-13 17:46:16 -07:00
parent f470c960f4
commit cad474b100

View file

@ -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);
};