1 #ifndef OSMIUM_GEOM_RELATIONS_HPP 2 #define OSMIUM_GEOM_RELATIONS_HPP 47 return ((lhs.bottom_left().x() >= rhs.bottom_left().x()) &&
48 (lhs.top_right().x() <= rhs.top_right().x()) &&
49 (lhs.bottom_left().y() >= rhs.bottom_left().y()) &&
50 (lhs.top_right().y() <= rhs.top_right().y()));
57 return ((lhs.bottom_left().x() <= rhs.top_right().x()) &&
58 (lhs.bottom_left().y() <= rhs.top_right().y()) &&
59 (rhs.bottom_left().x() <= lhs.top_right().x()) &&
60 (rhs.bottom_left().y() <= lhs.top_right().y()));
67 #endif // OSMIUM_GEOM_RELATIONS_HPP
bool contains(const osmium::Box &lhs, const osmium::Box &rhs) noexcept
Definition: relations.hpp:46
Namespace for everything in the Osmium library.
Definition: assembler.hpp:53
bool overlaps(const osmium::Box &lhs, const osmium::Box &rhs) noexcept
Definition: relations.hpp:56