跳到主要内容

flywave-mapview.camerautils.gettopfov

Home > @flywave/flywave-mapview > CameraUtils > getTopFov

CameraUtils.getTopFov() function

This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Returns top fov angle for a given perspective camera.

Signature:

function getTopFov(camera: THREE.PerspectiveCamera): number;

Parameters

Parameter

Type

Description

camera

THREE.PerspectiveCamera

The camera.

Returns:



number

The top fov angle in radians.

## Remarks

In symmetric projections, the principal point coincides with the image center, and the vertical and horizontal FOVs are each split at that point in two equal halves. However, in asymmetric projections the principal point is not at the image center, and thus each fov is split unevenly in two parts:

Symmetric projection Asymmetric projection \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-- \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\--- \| ^ \| \| ^ \| \| \| \| \| \|tFov \| \| \|tFov \| \| lFov v rFov \| \| \| \| \|<!-- -->&lt;<!-- -->\-\-\---<!-- -->&gt;<!-- -->x<!-- -->&lt;<!-- -->\-\-\-\-\-\-\-\-\-\-\-\---<!-- -->&gt;<!-- -->\| \| lFov v rFov \| \| ppal ^ point \| \|<!-- -->&lt;<!-- -->\-\-\-\-\-\-\-\-\-<!-- -->&gt;<!-- -->x<!-- -->&lt;<!-- -->\-\-\-\-\-\-\-\-\-<!-- -->&gt;<!-- -->\| \| \| o \| \| ppal point=img center \| \| \| img center \| \| ^ \| \| \| \| \| \|bFov \| \| \|bFov \| \| \| \| \| \| \| \| v \| \| v \| \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-- \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\---