Skip to main content

flywave-mapview.camerautils.getfocallength

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

CameraUtils.getFocalLength() 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 the camera's focal length.

Signature:

function getFocalLength(camera: THREE.PerspectiveCamera): number | undefined;

Parameters

Parameter

Type

Description

camera

THREE.PerspectiveCamera

The camera.

Returns:



number \| undefined

The focal length in pixels or `undefined` if not set.