소스 검색

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));