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

Function directionFromView

Cesium3DTilesSelection/src/ViewState.cpp:60–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60glm::dvec3 directionFromView(const glm::dmat4& viewMatrix) {
61 return glm::dvec3(viewMatrix[0][2], viewMatrix[1][2], viewMatrix[2][2]) *
62 -1.0;
63}
64} // namespace
65
66// The near and far plane values don't matter for frustum culling.

Callers 1

ViewStateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected