...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Checks if two geometries overlap.
template<typename Geometry1, typename Geometry2> bool overlaps(Geometry1 const & geometry1, Geometry2 const & geometry2)
Type |
Concept |
Name |
Description |
---|---|---|---|
Geometry1 const & |
geometry1 |
||
Geometry2 const & |
geometry2 |
Returns true if two geometries overlap
Either
#include <boost/geometry/geometry.hpp>
Or
#include <boost/geometry/algorithms/overlaps.hpp>
The function overlaps implements function Overlaps from the OGC Simple Feature Specification.