| 498 | } |
| 499 | |
| 500 | bool UserEventStream::SetAngle(double azimuth, bool isAnim, TAnimationCreator const & parallelAnimCreator) |
| 501 | { |
| 502 | ScreenBase screen; |
| 503 | GetTargetScreen(screen); |
| 504 | m2::PointD pt = m_visibleViewport.Center(); |
| 505 | m2::PointD gPt = screen.PtoG(screen.P3dtoP(pt)); |
| 506 | |
| 507 | if (screen.isPerspective()) |
| 508 | { |
| 509 | return SetFollowAndRotate(gPt, pt, azimuth, kDoNotChangeZoom, kDoNotAutoZoom, isAnim, false /* isAutoScale */, |
| 510 | nullptr /* onFinishAction */, parallelAnimCreator); |
| 511 | } |
| 512 | |
| 513 | screen.SetAngle(azimuth); |
| 514 | screen.MatchGandP3d(gPt, pt); |
| 515 | return SetScreen(screen, isAnim, parallelAnimCreator); |
| 516 | } |
| 517 | |
| 518 | bool UserEventStream::SetRect(m2::RectD rect, int zoom, bool applyRotation, bool isAnim, bool useVisibleViewport, |
| 519 | TAnimationCreator const & parallelAnimCreator) |
no test coverage detected