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

Function Expanded

CesiumGeospatial/src/S2CellID.cpp:150–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150GlobeRectangle Expanded(
151 const R1Interval& lat_,
152 const S1Interval& lng_,
153 const S2LatLng& margin) {
154 R1Interval lat = lat_.Expanded(margin.lat().radians());
155 S1Interval lng = lng_.Expanded(margin.lng().radians());
156 if (lat.is_empty() || lng.is_empty())
157 return GlobeRectangle(0.0, 0.0, 0.0, 0.0);
158 return GlobeRectangleFromLatLng(lat.Intersection(FullLat()), lng);
159}
160
161} // namespace
162

Callers 1

Calls 3

GlobeRectangleFunction · 0.85
GlobeRectangleFromLatLngFunction · 0.85
FullLatFunction · 0.85

Tested by

no test coverage detected