MCPcopy Create free account
hub / github.com/SuperMap/iClient-JavaScript / fovYToFy

Function fovYToFy

src/mapboxgl/mapping/utils/VideoMapUtil.js:29–31  ·  view source on GitHub ↗
(fovY, videoHeight)

Source from the content-addressed store, hash-verified

27}
28
29export const fovYToFy = (fovY, videoHeight) => {
30 return videoHeight / (2 * Math.tan(fovY / 2 * Math.PI / 180));
31}
32
33/**
34 * @private

Callers 3

_initParametersMethod · 0.90
onAddMethod · 0.90
_initParametersMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected