IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
Point2dFunctions.h
Go to the documentation of this file.
1 // Point2dFunctions.h:
3 // -------------------
4 //
14 
15 #ifndef __IPSDKGEOMETRY_POINT2DFUNCTIONS_H__
16 #define __IPSDKGEOMETRY_POINT2DFUNCTIONS_H__
17 
19 #include <IPSDKUtil/BaseTypes.h>
20 
21 namespace ipsdk {
22 namespace geom {
23 
24 template <typename T>
25 struct Point2dData;
26 template <typename T>
27 class Point2d;
28 
31 
34 template <typename T>
36 normL2(const Point2d<T>& pt);
37 template <typename T>
39 normL2(const Point2dData<T>& pt);
41 
44 template <typename T>
46 distance(const Point2d<T>& pt1, const Point2d<T>& pt2);
47 template <typename T>
49 distance(const Point2dData<T>& pt1, const Point2dData<T>& pt2);
51 
54 template <typename T>
56 scalarProduct(const Point2d<T>& pt1, const Point2d<T>& pt2);
57 template <typename T>
59 scalarProduct(const Point2dData<T>& pt1, const Point2dData<T>& pt2);
61 
64 
65 } // end of namespace geom
66 } // end of namespace ipsdk
67 
68 #endif // __IPSDKGEOMETRY_POINT2DFUNCTIONS_H__
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
double ipReal64
Base types definition.
Definition: BaseTypes.h:57
IPSDKGEOMETRY_API ipReal64 distance(const Point2d< T > &pt1, const Point2d< T > &pt2)
compute euclidian distance between two points
Definition of import/export macro for library.
Base types for multiplatform compatibility.
#define IPSDKGEOMETRY_API
Import/Export macro for library IPSDKGeometry.
Definition: IPSDKGeometryExports.h:25
IPSDKGEOMETRY_API ipReal64 scalarProduct(const Point2d< T > &pt1, const Point2d< T > &pt2)
compute points scalar product
Definition: Point2dFunctions.cpp:91
IPSDKGEOMETRY_API ipReal64 normL2(const Point2d< T > &pt)
compute point norm