Browse Source

Missed one

sebastien 7 years ago
parent
commit
2286f9a3f2
1 changed files with 4 additions and 1 deletions
  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.position.subtractToRef(this._getTargetPosition(), this._computationVector);
             this.radius = this._computationVector.length();
             this.radius = this._computationVector.length();