Browse Source

Quaternion multiplyInPlace

Raanan Weber 9 years ago
parent
commit
050b6f2e66
1 changed files with 6 additions and 0 deletions
  1. 6 0
      src/Math/babylon.math.ts

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

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