@@ -295,6 +295,13 @@ THREE.Vector2.prototype = {
},
+ fromArray: function ( array ) {
+
+ this.x = array[ 0 ];
+ this.y = array[ 1 ];
+ },
toArray: function () {
return [ this.x, this.y ];
@@ -739,6 +739,14 @@ THREE.Vector3.prototype = {
+ this.z = array[ 2 ];
return [ this.x, this.y, this.z ];
@@ -547,6 +547,15 @@ THREE.Vector4.prototype = {
+ this.w = array[ 3 ];
return [ this.x, this.y, this.z, this.w ];