static
| 2701 | |
| 2702 | // static |
| 2703 | m2::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 |
| 2715 | m2::AnyRectD TapInfo::GetPreciseTapRect(m2::PointD const & mercator, double eps) |
nothing calls this directly
no test coverage detected