diff options
Diffstat (limited to 'geometry')
-rw-r--r-- | geometry/screenbase.cpp | 5 | ||||
-rw-r--r-- | geometry/screenbase.hpp | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/geometry/screenbase.cpp b/geometry/screenbase.cpp index 2059a4daf6..4b789f82a2 100644 --- a/geometry/screenbase.cpp +++ b/geometry/screenbase.cpp @@ -146,6 +146,11 @@ double ScreenBase::GetAngle() const return m_Angle.val(); } +m2::PointD const & ScreenBase::GetOrg() const +{ + return m_Org; +} + int ScreenBase::GetWidth() const { return my::rounds(m_PixelRect.SizeX()); diff --git a/geometry/screenbase.hpp b/geometry/screenbase.hpp index dc0c9109d2..46f50ac0e5 100644 --- a/geometry/screenbase.hpp +++ b/geometry/screenbase.hpp @@ -60,6 +60,7 @@ public: void Move(double dx, double dy); void MoveG(m2::PointD const & p); + /// scale global rect void Scale(double scale); void Rotate(double angle); @@ -70,6 +71,9 @@ public: double GetScale() const; double GetAngle() const; + + m2::PointD const & GetOrg() const; + int GetWidth() const; int GetHeight() const; |