| 32 | } |
| 33 | |
| 34 | m2::PointD CalculateCenter(double scale, m2::RectD const & pixelRect, m2::PointD const & userPos, |
| 35 | m2::PointD const & pixelPos, double azimuth) |
| 36 | { |
| 37 | m2::PointD formingVector = (pixelRect.Center() - pixelPos) * scale; |
| 38 | formingVector.y = -formingVector.y; |
| 39 | formingVector.Rotate(azimuth); |
| 40 | return userPos + formingVector; |
| 41 | } |
| 42 | |
| 43 | m2::PointD CalculateCenter(ScreenBase const & screen, m2::PointD const & userPos, m2::PointD const & pixelPos, |
| 44 | double azimuth) |