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

Function AppendPointsWithAnyDirection

tools/poly_borders/borders_data.cpp:53–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53std::vector<m2::PointD> AppendPointsWithAnyDirection(std::vector<MarkedPoint> const & copyFrom, size_t from, size_t to)
54{
55 std::vector<m2::PointD> result;
56 if (from > to)
57 std::swap(from, to);
58
59 for (size_t k = from; k <= to; ++k)
60 result.emplace_back(copyFrom[k].m_point);
61
62 return result;
63}
64
65double AbsAreaDiff(std::vector<m2::PointD> const & firstPolygon, std::vector<m2::PointD> const & secondPolygon)
66{

Callers 1

TryToReplaceMethod · 0.85

Calls 2

swapFunction · 0.50
emplace_backMethod · 0.45

Tested by

no test coverage detected