| 73 | } |
| 74 | |
| 75 | bool 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 | |
| 86 | bool HierarchyPlace::Contains(m2::PointD const & point) const |
| 87 | { |
no test coverage detected