Method ComputePixelFocalLength
ComputePixelFocalLength(float, int)
Determines the equivalent focal length, in pixels, for a given field of view angle and image size.
Declaration
public static float ComputePixelFocalLength(float fov, int imageSize)
Parameters
Type | Name | Description |
---|---|---|
float | fov | The field-of-view angle, in degrees. Can be either horizontal or vertical. |
int | imageSize | The image size, in pixels. Can be either width or height, but must match the direction of fov./> |
Returns
Type | Description |
---|---|
float | The focal length, in pixels. |