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

Method ViewState

Cesium3DTilesSelection/src/ViewState.cpp:67–83  ·  view source on GitHub ↗

The near and far plane values don't matter for frustum culling.

Source from the content-addressed store, hash-verified

65
66// The near and far plane values don't matter for frustum culling.
67ViewState::ViewState(
68 const glm::dvec3& position,
69 const glm::dvec3& direction,
70 const glm::dvec3& up,
71 const glm::dvec2& viewportSize,
72 double horizontalFieldOfView,
73 double verticalFieldOfView,
74 const CesiumGeospatial::Ellipsoid& ellipsoid)
75 : ViewState(
76 Transforms::createViewMatrix(position, direction, up),
77 Transforms::createPerspectiveMatrix(
78 horizontalFieldOfView,
79 verticalFieldOfView,
80 100.0,
81 std::numeric_limits<double>::infinity()),
82 viewportSize,
83 ellipsoid) {}
84
85ViewState::ViewState(
86 const glm::dmat4& viewMatrix,

Callers

nothing calls this directly

Calls 4

positionFromViewFunction · 0.85
directionFromViewFunction · 0.85
createCullingVolumeFunction · 0.85

Tested by

no test coverage detected