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

Method GetBboxFor

generator/cluster_finder.hpp:80–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78 }
79
80 m2::RectD GetBboxFor(PtrT p) const
81 {
82 m2::RectD bbox;
83 auto const dist = m_radiusFunc(*p);
84 GetLimitRect(*p).ForEachCorner([&](auto const & p) { bbox.Add(mercator::RectByCenterXYAndSizeInMeters(p, dist)); });
85 return bbox;
86 }
87
88 std::vector<T> const & m_container;
89 RadiusFunc m_radiusFunc;

Callers

nothing calls this directly

Calls 4

ForEachCornerMethod · 0.80
GetLimitRectFunction · 0.70
AddMethod · 0.45

Tested by

no test coverage detected