[page:Camera] →

# [name]

A general purpose camera, for setting FOV, Lens Focal Length, and switching between perspective and orthographic views easily. Use this only if you do not wish to manage both an Orthographic and Perspective Camera

## Examples

[example:canvas_camera_orthographic2 camera / orthographic2 ]
`//Create combined camera camera = new THREE.CombinedCamera( window.innerWidth / 2, window.innerHeight / 2, 70, 1, 1000, - 500, 1000 );`

## Constructor

### [name]([page:Number width], [page:Number height], [page:Number fov], [page:Number near], [page:Number far], [page:Number orthoNear], [page:Number orthoFar])

width -- Camera frustum width.
height -- Camera frustum height.
fov — Camera frustum vertical field of view in perspective view.
near — Camera frustum near plane in perspective view.
far — Camera frustum far plane in perspective view.
orthoNear — Camera frustum near plane in orthographic view.
orthoFar — Camera frustum far plane in orthographic view.
Creates a [name]. This initializes 2 cameras, an OrthographicCamera and a PerspectiveCamera. The default is the perspective Camera.

## Properties

### [property:Number fov]

Gets or sets the camera frustum vertical field of view in perspective view.

### [property:number left]

Gets or sets the camera frustum left plane in orthographic view.

### [property:Number right]

Gets or sets the camera frustum right plane in orthographic view.

### [property:number top]

Gets or sets the camera frustum top plane in orthographic view.

### [property:Number bottom]

Gets or sets the camera frustum bottom plane in orthographic view.

### [property:number zoom]

Gets or sets the zoom factor of the camera.

### [property:number near]

Gets camera frustum near plane.

### [property:number far]

Gets camera frustum far plane.

### [property:Matrix4 projectionMatrix]

This is the matrix which contains the projection.

### [property:OrthographicCamera cameraO]

Gets or sets the internal OrthographicCamera used as camera.

### [property:PerspectiveCamera cameraP]

Gets or sets the internal PerspectiveCamera used as camera.

### [property:boolean inOrthographicMode]

Gets whether the combinedCamera is in Orthographic Mode.

### [property:boolean inPerspectiveMode]

Gets whether the combinedCamera is in Perspective Mode.

## Methods

### [method:null setFov]([page:Number fov])

fov -- Camera frustum vertical field of view in perspective view.
sets the camera frustum vertical field of view in perspective view.

### [method:null setZoom]([page:Number zoom])

zoom -- The zoom factor.
Sets the zoomfactor.

### [method:null setLens]([page:number focalLength], [page:Number frameHeight])

focalLength -- The focal length of a lens is defined as the distance from the optical center of a lens (or, the secondary principal point for a complex lens like a camera lens) to the focal point (sensor) when the lens is focused on an object at infinity.
frameHeight -- the size of the frame in mm. (default is *35*)
Sets the fov based on lens data.

### [method:null toFrontView]()

Sets the camera to view the front of the target.

### [method:null toBackView]()

Sets the camera to view the back of the target.

### [method:null toLeftView]()

Sets the camera to view the left of the target.

### [method:null toRightView]()

Sets the camera to view the right of the target.

### [method:null toTopView]()

Sets the camera to view the top.

### [method:null toBottomView]()

Sets the camera to view the bottom.

### [method:null setSize]([page:Number width], [page:Number height])

width -- The width of the orthographic view.
height -- The height of the orthographic view.
Sets the size of the orthographic view.

### [method:null toOrthographic]()

Change the camera to orthographic view.

### [method:null toPerspective]()

Change the camera to Perspective view.

### [method:null updateProjectionMatrix]()

Updates the ProjectionMatrix.

## Source

[link:https://github.com/mrdoob/three.js/blob/master/examples/js/cameras/CombinedCamera.js examples/cameras/CombinedCamera.js]