Contents

focalLength

The focal length, in millimeters, of the camera’s simulated lens.

Declaration

var focalLength: Float { get set }

Discussion

In a physically based camera, field of view is based on the focal length of the lens and the vertical aperture of the imaging surface (film or sensor). Changing the focalLength or sensorVerticalAperture property updates the fieldOfView property to the corresponding value, and vice versa.

The default focal length is 50mm, corresponding to a field of view of 54 degrees, and vertical sensor aperture of 24mm.

See Also

Modeling a Physical Lens