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

Method getGlobeRectangle

CesiumIonClient/src/Geocoder.cpp:9–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7namespace CesiumIonClient {
8
9CesiumGeospatial::GlobeRectangle GeocoderFeature::getGlobeRectangle() const {
10 struct Operation {
11 CesiumGeospatial::GlobeRectangle
12 operator()(const CesiumGeospatial::GlobeRectangle& rect) {
13 return rect;
14 }
15
16 CesiumGeospatial::GlobeRectangle
17 operator()(const CesiumGeospatial::Cartographic& cartographic) {
18 return CesiumGeospatial::GlobeRectangle(
19 cartographic.longitude,
20 cartographic.latitude,
21 cartographic.longitude,
22 cartographic.latitude);
23 }
24 };
25
26 return std::visit(Operation{}, this->destination);
27}
28
29CesiumGeospatial::Cartographic GeocoderFeature::getCartographic() const {
30 struct Operation {

Callers 1

TestConnection.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected