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

Method GetRoutingPointTapRect

libs/drape_frontend/frontend_renderer.cpp:2703–2712  ·  view source on GitHub ↗

static

Source from the content-addressed store, hash-verified

2701
2702// static
2703m2::AnyRectD TapInfo::GetRoutingPointTapRect(m2::PointD const & mercator, ScreenBase const & screen)
2704{
2705 static int constexpr kRoutingPointTouchPixelIncrease = 20;
2706
2707 m2::AnyRectD result;
2708 double const bmAddition = kRoutingPointTouchPixelIncrease * VisualParams::Instance().GetVisualScale();
2709 double const halfSize = VisualParams::Instance().GetTouchRectRadius();
2710 screen.GetTouchRect(screen.GtoP(mercator), halfSize + bmAddition, result);
2711 return result;
2712}
2713
2714// static
2715m2::AnyRectD TapInfo::GetPreciseTapRect(m2::PointD const & mercator, double eps)

Callers

nothing calls this directly

Calls 4

GetVisualScaleMethod · 0.80
GetTouchRectRadiusMethod · 0.80
GetTouchRectMethod · 0.45
GtoPMethod · 0.45

Tested by

no test coverage detected