Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
29
export
const
fovYToFy = (fovY, videoHeight) => {
30
return
videoHeight / (2 * Math.tan(fovY / 2 * Math.PI / 180));
31
}
32
33
/**
34
* @private
Callers
3
_initParameters
Method · 0.90
onAdd
Method · 0.90
_initParameters
Method · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected