|
@@ -133,6 +133,15 @@ THREE.Vector2.prototype = {
|
|
|
return this;
|
|
|
|
|
|
},
|
|
|
+
|
|
|
+ multiply: function ( v ) {
|
|
|
+
|
|
|
+ this.x *= v.x;
|
|
|
+ this.y *= v.y;
|
|
|
+
|
|
|
+ return this;
|
|
|
+
|
|
|
+ },
|
|
|
|
|
|
multiplyScalar: function ( s ) {
|
|
|
|
|
@@ -143,6 +152,15 @@ THREE.Vector2.prototype = {
|
|
|
|
|
|
},
|
|
|
|
|
|
+ divide: function ( v ) {
|
|
|
+
|
|
|
+ this.x /= v.x;
|
|
|
+ this.y /= v.y;
|
|
|
+
|
|
|
+ return this;
|
|
|
+
|
|
|
+ },
|
|
|
+
|
|
|
divideScalar: function ( scalar ) {
|
|
|
|
|
|
if ( scalar !== 0 ) {
|