mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-24 17:33:27 +01:00
add alias for the toArray method of Vector
This commit is contained in:
parent
f470c960f4
commit
cad474b100
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue