Explorar o código

Quaternion multiplyInPlace

Raanan Weber %!s(int64=9) %!d(string=hai) anos
pai
achega
050b6f2e66
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  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));