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

Function GetLatitude

CesiumGeospatial/src/S2CellID.cpp:129–132  ·  view source on GitHub ↗

These anonymous-namespace functions are adaptations from s2geometry.

Source from the content-addressed store, hash-verified

127
128// These anonymous-namespace functions are adaptations from s2geometry.
129double GetLatitude(const R2Rect& uv_, int face_, int i, int j) {
130 S2Point p = S2::FaceUVtoXYZ(face_, uv_[0][i], uv_[1][j]);
131 return S2LatLng::Latitude(p).radians();
132}
133
134double GetLongitude(const R2Rect& uv_, int face_, int i, int j) {
135 S2Point p = S2::FaceUVtoXYZ(face_, uv_[0][i], uv_[1][j]);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected