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

Function unprojectRectangleSimple

CesiumGeospatial/src/Projection.cpp:74–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74GlobeRectangle unprojectRectangleSimple(
75 const Projection& projection,
76 const CesiumGeometry::Rectangle& rectangle) {
77 struct Operation {
78 const CesiumGeometry::Rectangle& rectangle;
79
80 GlobeRectangle operator()(const GeographicProjection& geographic) noexcept {
81 return geographic.unproject(rectangle);
82 }
83
84 GlobeRectangle
85 operator()(const WebMercatorProjection& webMercator) noexcept {
86 return webMercator.unproject(rectangle);
87 }
88 };
89
90 return std::visit(Operation{rectangle}, projection);
91}
92
93CesiumGeometry::AxisAlignedBox projectRegionSimple(
94 const Projection& projection,

Callers 12

loadTileImageMethod · 0.85
loadTileImageFunction · 0.85
unprojectRegionSimpleFunction · 0.85
createChildTileMethod · 0.85
loadAvailabilityMethod · 0.85
loadQuadtreeTileImageMethod · 0.85
loadTileImageFunction · 0.85
loadQuadtreeTileImageMethod · 0.85
loadQuadtreeTileImageMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected