These anonymous-namespace functions are adaptations from s2geometry.
| 127 | |
| 128 | // These anonymous-namespace functions are adaptations from s2geometry. |
| 129 | double 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 | |
| 134 | double GetLongitude(const R2Rect& uv_, int face_, int i, int j) { |
| 135 | S2Point p = S2::FaceUVtoXYZ(face_, uv_[0][i], uv_[1][j]); |
no outgoing calls
no test coverage detected