|
@@ -594,7 +594,12 @@ Object.assign( Vector4.prototype, {
|
|
|
|
|
|
lerpVectors: function ( v1, v2, alpha ) {
|
|
|
|
|
|
- return this.subVectors( v2, v1 ).multiplyScalar( alpha ).add( v1 );
|
|
|
+ this.x = v1.x + ( v2.x - v1.x ) * alpha;
|
|
|
+ this.y = v1.y + ( v2.y - v1.y ) * alpha;
|
|
|
+ this.z = v1.z + ( v2.z - v1.z ) * alpha;
|
|
|
+ this.w = v1.w + ( v2.w - v1.w ) * alpha;
|
|
|
+
|
|
|
+ return this;
|
|
|
|
|
|
},
|
|
|
|