Function: focalToFov()
focalToFov(
focal
,sensorWidth
,width
,height
):number
Calculates a vertical field of view (in radians) from a focal length and sensor size.
Parameters
Parameter | Type | Description |
---|---|---|
focal | number | The focal length in millimeters |
sensorWidth | number | The sensor width in millimeters |
width | number | The scene width (pixels) |
height | number | The scene height (pixels) |
Returns
number
The vertical field of view (in radians)
Last updated on