| 126 | } |
| 127 | |
| 128 | drape_ptr<MapLinearAnimation> GetSetRectAnimation(ScreenBase const & screen, m2::AnyRectD const & startRect, |
| 129 | m2::AnyRectD const & endRect) |
| 130 | { |
| 131 | auto anim = make_unique_dp<MapLinearAnimation>(); |
| 132 | |
| 133 | double const startScale = CalculateScale(screen.PixelRect(), startRect.GetLocalRect()); |
| 134 | double const endScale = CalculateScale(screen.PixelRect(), endRect.GetLocalRect()); |
| 135 | |
| 136 | anim->SetRotate(startRect.Angle().val(), endRect.Angle().val()); |
| 137 | anim->SetMove(startRect.GlobalCenter(), endRect.GlobalCenter(), screen); |
| 138 | anim->SetScale(startScale, endScale); |
| 139 | anim->SetMaxScaleDuration(kMaxAnimationTimeSec); |
| 140 | |
| 141 | return anim; |
| 142 | } |
| 143 | |
| 144 | drape_ptr<MapFollowAnimation> GetFollowAnimation(ScreenBase const & startScreen, m2::PointD const & userPos, |
| 145 | double targetScale, double targetAngle, m2::PointD const & endPixelPos, |
nothing calls this directly
no test coverage detected