Alexander Rose 6 years ago
parent
commit
f75c5c2a3b
1 changed files with 0 additions and 12 deletions
  1. 0 12
      src/mol-canvas3d/camera/combined.ts

+ 0 - 12
src/mol-canvas3d/camera/combined.ts

@@ -9,14 +9,6 @@ import { OrthographicCamera } from './orthographic';
 import { Camera, DefaultCameraProps } from './base';
 import { Vec3 } from 'mol-math/linear-algebra';
 
-// TODO
-
-// updateZoom () {
-//     const fov = degToRad(this.perspectiveCamera.fov)
-//     const height = 2 * Math.tan(fov / 2) * -this.camera.position.z
-//     this.orthographicCamera.zoom = this.height / height
-// }
-
 export type CombinedCameraMode = 'perspective' | 'orthographic'
 
 export interface CombinedCamera extends Camera {
@@ -45,11 +37,7 @@ export namespace CombinedCamera {
         return camera
     }
 
-    // const center = Vec3.zero()
     export function update(camera: CombinedCamera) {
-        // console.log(camera.position, camera.direction)
-        // Vec3.add(center, camera.position, camera.direction)
-
         const height = 2 * Math.tan(camera.fov / 2) * Vec3.distance(camera.position, camera.target)
         camera.zoom = camera.viewport.height / height