diff options
-rw-r--r-- | geometry/screenbase.cpp | 6 | ||||
-rw-r--r-- | geometry/screenbase.hpp | 2 | ||||
-rw-r--r-- | map/navigator.cpp | 5 | ||||
-rw-r--r-- | map/navigator.hpp | 1 |
4 files changed, 14 insertions, 0 deletions
diff --git a/geometry/screenbase.cpp b/geometry/screenbase.cpp index 7966cafee3..0753090f0c 100644 --- a/geometry/screenbase.cpp +++ b/geometry/screenbase.cpp @@ -161,6 +161,12 @@ double ScreenBase::GetAngle() const return m_Angle.val(); } +void ScreenBase::SetAngle(double angle) +{ + m_Angle = ang::AngleD(angle); + UpdateDependentParameters(); +} + m2::PointD const & ScreenBase::GetOrg() const { return m_Org; diff --git a/geometry/screenbase.hpp b/geometry/screenbase.hpp index ca380f320d..0f90a4769e 100644 --- a/geometry/screenbase.hpp +++ b/geometry/screenbase.hpp @@ -61,7 +61,9 @@ public: public: double GetScale() const; + double GetAngle() const; + void SetAngle(double angle); m2::PointD const & GetOrg() const; diff --git a/map/navigator.cpp b/map/navigator.cpp index 095db98cb2..5cad7284fa 100644 --- a/map/navigator.cpp +++ b/map/navigator.cpp @@ -565,6 +565,11 @@ void Navigator::Rotate(double angle) m_Screen.Rotate(angle); } +void Navigator::SetAngle(double angle) +{ + m_Screen.SetAngle(angle); +} + void Navigator::Move(double azDir, double factor) { m2::RectD const r = m_Screen.ClipRect(); diff --git a/map/navigator.hpp b/map/navigator.hpp index a4142d13f5..da7882790f 100644 --- a/map/navigator.hpp +++ b/map/navigator.hpp @@ -47,6 +47,7 @@ public: void Scale(double scale); void Rotate(double angle); + void SetAngle(double angle); void Move(double azDir, double factor); |