MCPcopy Create free account
hub / github.com/microsoft/SandDance / fovyToAltitude

Function fovyToAltitude

docs/app/js/sanddance-app.js:80427–80429  ·  view source on GitHub ↗
(fovy)

Source from the content-addressed store, hash-verified

80425 return 2 * Math.atan(0.5 / altitude) * RADIANS_TO_DEGREES;
80426}
80427function fovyToAltitude(fovy) {
80428 return 0.5 / Math.tan(0.5 * fovy * DEGREES_TO_RADIANS);
80429}
80430function worldToPixels(xyz, pixelProjectionMatrix) {
80431 const [x, y, z = 0] = xyz;
80432 (0, _assertDefault.default)(Number.isFinite(x) && Number.isFinite(y) && Number.isFinite(z));

Callers 1

getProjectionParametersFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected