MCPcopy Create free account
hub / github.com/CesiumGS/cesium-native / getHorizontalFieldOfView

Method getHorizontalFieldOfView

Cesium3DTilesSelection/src/ViewState.cpp:277–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

275}
276
277double ViewState::getHorizontalFieldOfView() const noexcept {
278 return std::atan(1.0 / this->_projectionMatrix[0][0]) * 2.0;
279}
280
281double ViewState::getVerticalFieldOfView() const noexcept {
282 return std::atan(-1.0 / this->_projectionMatrix[1][1]) * 2.0;

Calls

no outgoing calls

Tested by

no test coverage detected