flywave-mapview.mapviewutils.getworldtargetfromcamera
Home > @flywave/flywave-mapview > MapViewUtils > getWorldTargetFromCamera
MapViewUtils.getWorldTargetFromCamera() function
Calculate target (focus) point world coordinates for given camera position and orientation.
Signature:
function getWorldTargetFromCamera(camera: THREE.Camera, projection: Projection, elevation?: number): THREE.Vector3 | null;
Parameters
Parameter | Type | Description |
|---|---|---|
camera | THREE.Camera | The camera looking on target point. |
projection | Projection | The geo-projection used. |
elevation | number | (Optional) Optional elevation above (or below) sea level in world units. |
Returns:
THREE.Vector3 \| null