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

Method GetDefaultTapRect

libs/drape_frontend/frontend_renderer.cpp:2680–2686  ·  view source on GitHub ↗

static

Source from the content-addressed store, hash-verified

2678
2679// static
2680m2::AnyRectD TapInfo::GetDefaultTapRect(m2::PointD const & mercator, ScreenBase const & screen)
2681{
2682 m2::AnyRectD result;
2683 double const halfSize = VisualParams::Instance().GetTouchRectRadius();
2684 screen.GetTouchRect(screen.GtoP(mercator), halfSize, result);
2685 return result;
2686}
2687
2688// static
2689m2::AnyRectD TapInfo::GetBookmarkTapRect(m2::PointD const & mercator, ScreenBase const & screen)

Callers

nothing calls this directly

Calls 3

GetTouchRectRadiusMethod · 0.80
GetTouchRectMethod · 0.45
GtoPMethod · 0.45

Tested by

no test coverage detected