@@ -33,6 +33,15 @@ THREE.Vector2.prototype = {
},
+ setScalar: function ( scalar ) {
+
+ this.x = scalar;
+ this.y = scalar;
+ return this;
+ },
setX: function ( x ) {
this.x = x;
@@ -29,6 +29,16 @@ THREE.Vector3.prototype = {
+ this.z = scalar;
@@ -30,6 +30,17 @@ THREE.Vector4.prototype = {
+ this.w = scalar;