GeometricRelations.hpp
1 #ifndef DM_GEOMETRIC_RELATIONS_HPP_INCLUDED
2 #define DM_GEOMETRIC_RELATIONS_HPP_INCLUDED
3 
4 #ifdef _MSC_VER
5  #pragma once
6 #endif
7 
8 #include "DM/config.hpp"
9 #include "DM/AutoLink.hpp"
10 #include "DM/IGeometry.hpp"
11 #include "DM/IPoint.hpp"
12 #include "DM/IPolyline.hpp"
13 #include "DM/IPolygon.hpp"
14 #include "DM/IWindow.hpp"
15 
16 
17 DM_NAMESPACE_BEGIN
18 
19 /// \brief provides a set of geometric relations function for geometry objects
20 namespace GeometricRelations
21 {
22  bool DM_API contains(const IWindow &a, const IWindow &b); ///< returns true if window b is fully contained by window a (boundary may touch)
23  bool DM_API intersects(const IWindow &a, const IWindow &b); ///< returns true if window a and b are (partly) overlapping (a boundary touch is enough to return true)
24 }
25 
26 DM_NAMESPACE_END
27 
28 #endif //DM_GEOMETRIC_RELATIONS_HPP_INCLUDED