Преглед изворни кода

Quaternion multiplyInPlace

Raanan Weber пре 9 година
родитељ
комит
050b6f2e66
1 измењених фајлова са 6 додато и 0 уклоњено
  1. 6 0
      src/Math/babylon.math.ts

+ 6 - 0
src/Math/babylon.math.ts

@@ -1539,6 +1539,12 @@
 
             return this;
         }
+        
+        public multiplyInPlace(q1: Quaternion): Quaternion {
+            this.multiplyToRef(q1, this);
+
+            return result;
+        }
 
         public length(): number {
             return Math.sqrt((this.x * this.x) + (this.y * this.y) + (this.z * this.z) + (this.w * this.w));