| 30 | } |
| 31 | |
| 32 | m3::Point<double> ToVector(LatLon const & ll) |
| 33 | { |
| 34 | double const lat = math::DegToRad(ll.m_lat); |
| 35 | double const lon = math::DegToRad(ll.m_lon); |
| 36 | return {kEarthRadiusMeters * cos(lat) * cos(lon), kEarthRadiusMeters * cos(lat) * sin(lon), |
| 37 | kEarthRadiusMeters * sin(lat)}; |
| 38 | } |
| 39 | |
| 40 | } // namespace ms |
no test coverage detected