Browse Source

Missed one

sebastien 7 năm trước cách đây
mục cha
commit
2286f9a3f2
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 4 1
      src/Cameras/babylon.arcRotateCamera.ts

+ 4 - 1
src/Cameras/babylon.arcRotateCamera.ts

@@ -791,7 +791,10 @@
             }
         }
 
-        public rebuildAnglesAndRadius() {
+        /**
+         * Rebuilds angles (alpha, beta) and radius from the give position and target.
+         */
+        public rebuildAnglesAndRadius(): void {
             this.position.subtractToRef(this._getTargetPosition(), this._computationVector);
             this.radius = this._computationVector.length();