| 148 | } |
| 149 | |
| 150 | m2::RectD OverlayHandle::GetPerspectiveRect(m2::RectD const & pixelRect, ScreenBase const & screen) const |
| 151 | { |
| 152 | m2::PointD const tmpPoint = screen.PtoP3d(pixelRect.LeftTop()); |
| 153 | m2::RectD perspectiveRect(tmpPoint, tmpPoint); |
| 154 | perspectiveRect.Add(screen.PtoP3d(pixelRect.LeftBottom())); |
| 155 | perspectiveRect.Add(screen.PtoP3d(pixelRect.RightBottom())); |
| 156 | perspectiveRect.Add(screen.PtoP3d(pixelRect.RightTop())); |
| 157 | |
| 158 | return perspectiveRect; |
| 159 | } |
| 160 | |
| 161 | m2::RectD OverlayHandle::GetPixelRectPerspective(ScreenBase const & screen) const |
| 162 | { |
nothing calls this directly
no test coverage detected