MCPcopy Create free account
hub / github.com/comaps/comaps / GetFollowAnimation

Function GetFollowAnimation

libs/drape_frontend/screen_animations.cpp:144–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144drape_ptr<MapFollowAnimation> GetFollowAnimation(ScreenBase const & startScreen, m2::PointD const & userPos,
145 double targetScale, double targetAngle, m2::PointD const & endPixelPos,
146 bool isAutoZoom)
147{
148 auto anim =
149 make_unique_dp<MapFollowAnimation>(startScreen, userPos, endPixelPos, targetScale, targetAngle, isAutoZoom);
150 anim->SetMaxDuration(kMaxAnimationTimeSec);
151
152 return anim;
153}
154
155drape_ptr<MapScaleAnimation> GetScaleAnimation(ScreenBase const & startScreen, m2::PointD pxScaleCenter,
156 m2::PointD glbScaleCenter, double factor)

Callers 1

SetFollowAndRotateMethod · 0.85

Calls 1

SetMaxDurationMethod · 0.45

Tested by

no test coverage detected