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

Function AbsAreaDiff

tools/poly_borders/borders_data.cpp:65–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65double AbsAreaDiff(std::vector<m2::PointD> const & firstPolygon, std::vector<m2::PointD> const & secondPolygon)
66{
67 auto const firstArea = generator::AreaOnEarth(firstPolygon);
68 auto const secondArea = generator::AreaOnEarth(secondPolygon);
69 return std::abs(secondArea - firstArea);
70}
71
72bool NeedReplace(std::vector<m2::PointD> const & curSubpolygon, std::vector<m2::PointD> const & anotherSubpolygon)
73{

Callers 2

NeedReplaceFunction · 0.85
TryToReplaceMethod · 0.85

Calls 1

AreaOnEarthFunction · 0.50

Tested by

no test coverage detected