Browse Source

remove unnecessary complication of calculation which only obscures what is (#9151)

happening
aardgoose 9 years ago
parent
commit
3420a94d26
1 changed files with 1 additions and 3 deletions
  1. 1 3
      examples/js/cameras/CombinedCamera.js

+ 1 - 3
examples/js/cameras/CombinedCamera.js

@@ -66,9 +66,7 @@ THREE.CombinedCamera.prototype.toOrthographic = function () {
 	var hyperfocus = ( near + far ) / 2;
 
 	var halfHeight = Math.tan( fov * Math.PI / 180 / 2 ) * hyperfocus;
-	var planeHeight = 2 * halfHeight;
-	var planeWidth = planeHeight * aspect;
-	var halfWidth = planeWidth / 2;
+	var halfWidth = halfHeight * aspect;
 
 	halfHeight /= this.zoom;
 	halfWidth /= this.zoom;