Skip to Content
APIFunctionsfovToFocal

Function: fovToFocal()

fovToFocal(verticalFov, width, height, sensorWidth): number

Convert a focal length from a field of view

Parameters

ParameterTypeDefault valueDescription
verticalFovnumberundefinedthe vertical field of view in radians
widthnumberundefinedthe scene width
heightnumberundefinedthe scene height
sensorWidthnumber36the sensor width

Returns

number

the focal length

Last updated on