1#ifndef OSMIUM_GEOM_RELATIONS_HPP
2#define OSMIUM_GEOM_RELATIONS_HPP
46 inline bool contains(
const osmium::Box& lhs,
const osmium::Box& rhs)
noexcept {
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()));
56 inline bool overlaps(
const osmium::Box& lhs,
const osmium::Box& rhs)
noexcept {
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()));
bool contains(const osmium::Box &lhs, const osmium::Box &rhs) noexcept
Definition: relations.hpp:46
bool overlaps(const osmium::Box &lhs, const osmium::Box &rhs) noexcept
Definition: relations.hpp:56
Namespace for everything in the Osmium library.
Definition: assembler.hpp:53