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

Method GetSymmetrical

qt/qt_common/map_widget.cpp:250–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248}
249
250df::Touch MapWidget::GetSymmetrical(df::Touch const & touch) const
251{
252 m2::PointD const pixelCenter = m_framework.GetVisiblePixelCenter();
253 m2::PointD const symmetricalLocation = pixelCenter + pixelCenter - m2::PointD(touch.m_location);
254
255 df::Touch result;
256 result.m_id = touch.m_id + 1;
257 result.m_location = symmetricalLocation;
258
259 return result;
260}
261
262void MapWidget::OnViewportChanged(ScreenBase const & screen)
263{

Callers

nothing calls this directly

Calls 1

GetVisiblePixelCenterMethod · 0.80

Tested by

no test coverage detected