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

Method GetPerspectiveRect

libs/drape/overlay_handle.cpp:150–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150m2::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
161m2::RectD OverlayHandle::GetPixelRectPerspective(ScreenBase const & screen) const
162{

Callers

nothing calls this directly

Calls 6

PtoP3dMethod · 0.80
LeftTopMethod · 0.80
LeftBottomMethod · 0.80
RightBottomMethod · 0.80
RightTopMethod · 0.80
AddMethod · 0.45

Tested by

no test coverage detected