Skip to Content
APIFunctionsfocalToFov

Function: focalToFov()

focalToFov(focal, sensorWidth, width, height): number

Calculates a vertical field of view (in radians) from a focal length and sensor size.

Parameters

ParameterTypeDescription
focalnumberThe focal length in millimeters
sensorWidthnumberThe sensor width in millimeters
widthnumberThe scene width (pixels)
heightnumberThe scene height (pixels)

Returns

number

The vertical field of view (in radians)

Last updated on