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

Method AddPoint

qt/ruler.cpp:25–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25void Ruler::AddPoint(m2::PointD const & point)
26{
27 m_pointsPair[0] = m_pointsPair[1];
28 m_pointsPair[1] = mercator::ToLatLon(point);
29 m_polyline.insert(m_polyline.begin(), point);
30 if (IsValidPolyline())
31 SetDistance();
32}
33
34void Ruler::DrawLine(df::DrapeApi & drapeApi)
35{

Callers 2

DumpPolyFilesMethod · 0.45
SubmitRulerPointMethod · 0.45

Calls 3

ToLatLonFunction · 0.50
insertMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected