IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
Point2d.h
Go to the documentation of this file.
1 // Point2d.h:
3 // ----------
4 //
14 
15 #ifndef __IPSDKMATH_POINT2D_H__
16 #define __IPSDKMATH_POINT2D_H__
17 
20 
21 namespace ipsdk {
22 namespace math {
23 
26 
28 template <typename T>
29 IPSDK_FORCEINLINE ipReal64
30 distance(const T x1, const T y1,
31  const T x2, const T y2)
32 {
33  return normL2(x2-x1, y2-y1);
34 }
35 
38 
39 } // end of namespace math
40 } // end of namespace ipsdk
41 
42 #endif // __IPSDKMATH_POINT2D_H__
Definition of import/export macro for library.
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
double ipReal64
Base types definition.
Definition: BaseTypes.h:57
Utility functions used to handle vectors 2d.
IPSDK_FORCEINLINE ipReal64 distance(const T x1, const T y1, const T x2, const T y2)
Euclidian distance between 2d points.
Definition: Point2d.h:30
IPSDK_FORCEINLINE ipReal64 normL2(const T x, const T y)
L2 norm of a 2d vector.
Definition: Vector2d.h:32