IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
PolygonWithHoles2dOperators.h
Go to the documentation of this file.
1 // PolygonWithHoles2dOperators.h:
3 // ------------------------------
4 //
14 
15 #ifndef __IPSDKGEOMETRY_POLYGONWITHHOLES2DOPERATORS_H__
16 #define __IPSDKGEOMETRY_POLYGONWITHHOLES2DOPERATORS_H__
17 
20 #include <IPSDKMath/Constants.h>
21 
22 namespace ipsdk {
23 namespace geom {
24 
27 
30 template <typename T>
32 operator== (const PolygonWithHoles2d<T>& polygon1, const PolygonWithHoles2d<T>& polygon2);
33 template <typename T>
35 operator!= (const PolygonWithHoles2d<T>& polygon1, const PolygonWithHoles2d<T>& polygon2);
37 
39 template <typename T>
41 compare(const PolygonWithHoles2d<T>& polygon1, const PolygonWithHoles2d<T>& polygon2,
42  const T epsilon = ipsdk::NumericLimits<T>::sqrt_epsilon());
43 
47 template <typename TOut, typename TIn>
48 IPSDKGEOMETRY_API boost::shared_ptr<PolygonWithHoles2d<TOut> >
49 cast(const PolygonWithHoles2d<TIn>& inputPolygon);
51 
53 template <typename T>
54 IPSDKGEOMETRY_API std::ostream&
55 operator<< (std::ostream& os, const PolygonWithHoles2d<T>& polygon);
56 
59 
60 } // end of namespace geom
61 } // end of namespace ipsdk
62 
63 #endif // __IPSDKGEOMETRY_POLYGONWITHHOLES2DOPERATORS_H__
IPSDKGEOMETRY_API bool compare(const BoundingBox2d< T > &boundingBox1, const BoundingBox2d< T > &boundingBox2, const T epsilon=ipsdk::NumericLimits< T >::sqrt_epsilon())
function allowing to compare bounding box
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
IPSDKGEOMETRY_API bool operator!=(const BoundingBox2d< T > &boundingBox1, const BoundingBox2d< T > &boundingBox2)
comparison operators for ipsdk::geom::BoundingBox2d class
Definition: NumericLimits.h:27
Predefined constants for ipsdk math library.
Predefined types for polygon 2d with holes management.
Definition of import/export macro for library.
#define IPSDKGEOMETRY_API
Import/Export macro for library IPSDKGeometry.
Definition: IPSDKGeometryExports.h:25
IPSDKGEOMETRY_API bool operator==(const BoundingBox2d< T > &boundingBox1, const BoundingBox2d< T > &boundingBox2)
comparison operators for ipsdk::geom::BoundingBox2d class
IPSDKGEOMETRY_API Point2d< TOut > cast(const Point2d< TIn > &pt)
conversion operators for ipsdk::geom::Point2d class