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

Method Contains

generator/hierarchy.cpp:75–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75bool HierarchyPlace::Contains(HierarchyPlace const & smaller) const
76{
77 if (IsPoint())
78 return false;
79
80 if (smaller.IsPoint())
81 return Contains(smaller.GetCenter());
82
83 return smaller.GetArea() <= GetArea() && CalculateOverlapPercentage(m_polygon, smaller.m_polygon) > 80.0;
84}
85
86bool HierarchyPlace::Contains(m2::PointD const & point) const
87{

Callers 1

FindPlaceParentMethod · 0.45

Calls 4

IsPointMethod · 0.45
GetCenterMethod · 0.45
GetAreaMethod · 0.45

Tested by

no test coverage detected