MCPcopy Create free account
hub / github.com/comaps/comaps / operator()

Method operator()

libs/geometry/algorithm.cpp:9–13  ·  view source on GitHub ↗

CalculatePolyLineCenter -------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

7{
8// CalculatePolyLineCenter -------------------------------------------------------------------------
9void CalculatePolyLineCenter::operator()(m2::PointD const & pt)
10{
11 m_length += (m_poly.empty() ? 0.0 : m_poly.back().m_p.Length(pt));
12 m_poly.emplace_back(pt, m_length);
13}
14
15PointD CalculatePolyLineCenter::GetResult() const
16{

Callers

nothing calls this directly

Calls 7

IsPointInsideTriangleFunction · 0.85
backMethod · 0.80
SquaredLengthMethod · 0.80
emptyMethod · 0.45
LengthMethod · 0.45
emplace_backMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected