We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4eccb8f commit 57902f1Copy full SHA for 57902f1
src/math/Vector2.js
@@ -302,7 +302,7 @@ THREE.Vector2.prototype = {
302
303
if ( newLength !== oldLength ) {
304
305
- this.multiplyScalar( newLength / oldLength );
+ this.divideScalar( oldLength ).multiplyScalar( newLength );
306
307
}
308
src/math/Vector3.js
@@ -532,7 +532,7 @@ THREE.Vector3.prototype = {
532
533
534
535
536
537
538
0 commit comments