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

Function HasIntersection

libs/geometry/rect2d.hpp:356–362  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

354
355template <typename T, typename TCollection>
356bool HasIntersection(m2::Rect<T> const & rect, TCollection const & geometry)
357{
358 for (auto const & g : geometry)
359 if (rect.IsIntersect(g))
360 return true;
361 return false;
362}
363
364template <class TArchive, class PointT>
365TArchive & operator>>(TArchive & ar, m2::Rect<PointT> & rect)

Callers 1

Calls 1

IsIntersectMethod · 0.45

Tested by

no test coverage detected