Forráskód Böngészése

MultInPlace-Fixed typo...

Raanan Weber 9 éve
szülő
commit
41f19a7a97
2 módosított fájl, 5 hozzáadás és 1 törlés
  1. 4 0
      src/Math/babylon.math.js
  2. 1 1
      src/Math/babylon.math.ts

+ 4 - 0
src/Math/babylon.math.js

@@ -1244,6 +1244,10 @@ var BABYLON;
             result.copyFromFloats(x, y, z, w);
             return this;
         };
+        Quaternion.prototype.multiplyInPlace = function (q1) {
+            this.multiplyToRef(q1, this);
+            return this;
+        };
         Quaternion.prototype.length = function () {
             return Math.sqrt((this.x * this.x) + (this.y * this.y) + (this.z * this.z) + (this.w * this.w));
         };

+ 1 - 1
src/Math/babylon.math.ts

@@ -1543,7 +1543,7 @@
         public multiplyInPlace(q1: Quaternion): Quaternion {
             this.multiplyToRef(q1, this);
 
-            return result;
+            return this;
         }
 
         public length(): number {