| 2332 | } |
| 2333 | |
| 2334 | void Framework::PredictLocation(double & lat, double & lon, double accuracy, double bearing, double speed, |
| 2335 | double elapsedSeconds) |
| 2336 | { |
| 2337 | double offsetInM = speed * elapsedSeconds; |
| 2338 | double angle = math::DegToRad(90.0 - bearing); |
| 2339 | |
| 2340 | m2::PointD mercatorPt = mercator::MetersToXY(lon, lat, accuracy).Center(); |
| 2341 | mercatorPt = mercator::GetSmPoint(mercatorPt, offsetInM * cos(angle), offsetInM * sin(angle)); |
| 2342 | lon = mercator::XToLon(mercatorPt.x); |
| 2343 | lat = mercator::YToLat(mercatorPt.y); |
| 2344 | } |
| 2345 | |
| 2346 | StringsBundle const & Framework::GetStringsBundle() |
| 2347 | { |
nothing calls this directly
no test coverage detected