IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
Parabola2dFunctions.h
Go to the documentation of this file.
1 // Parabola2dFunctions.h:
3 // ----------------------
4 //
14 
15 #ifndef __IPSDKGEOMETRY_PARABOLA2DFUNCTIONS_H__
16 #define __IPSDKGEOMETRY_PARABOLA2DFUNCTIONS_H__
17 
19 #include <IPSDKUtil/BaseTypes.h>
20 #include <vector>
21 
22 namespace ipsdk {
23 namespace geom {
24 
25 class Parabola2d;
26 template <typename T>
27 struct Point2dData;
28 
31 
38 computeArcLength(const Parabola2d& parabola,
39  const Point2dData<ipReal64>& pt0,
40  const Point2dData<ipReal64>& pt1);
41 
47 sampleArc(const Parabola2d& parabola,
48  const Point2dData<ipReal64>& pt0,
49  const Point2dData<ipReal64>& pt1,
50  const ipReal64& maxDist,
51  std::vector<Point2dData<ipReal64> >& sampleColl);
52 
55 belongsTo(const Parabola2d& parabola,
56  const Point2dData<ipReal64>& pt);
57 
60 template <typename T>
62 isInside(const Parabola2d& parabola,
63  const Point2dData<T>& pt);
64 
67 template <typename T>
69 isStrictlyInside(const Parabola2d& parabola,
70  const Point2dData<T>& pt);
71 
74 
75 } // end of namespace geom
76 } // end of namespace ipsdk
77 
78 #endif // __IPSDKGEOMETRY_PARABOLA2DFUNCTIONS_H__
IPSDKGEOMETRY_API bool isInside(const Parabola2d &parabola, const Point2dData< T > &pt)
function allowing to check whether a point is inside (or belongs to) parabola
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
IPSDKGEOMETRY_API bool belongsTo(const Parabola2d &parabola, const Point2dData< ipReal64 > &pt)
function allowing to check whether a point is on parabola
double ipReal64
Base types definition.
Definition: BaseTypes.h:57
IPSDKGEOMETRY_API ipReal64 computeArcLength(const Parabola2d &parabola, const Point2dData< ipReal64 > &pt0, const Point2dData< ipReal64 > &pt1)
function allowing to compute arc length between two points on a parabola
IPSDKGEOMETRY_API bool isStrictlyInside(const Parabola2d &parabola, const Point2dData< T > &pt)
function allowing to check whether a point is strictly inside parabola (point does not belongs to par...
Definition: Parabola2dFunctions.cpp:254
Definition of import/export macro for library.
Base types for multiplatform compatibility.
IPSDKGEOMETRY_API void sampleArc(const Parabola2d &parabola, const Point2dData< ipReal64 > &pt0, const Point2dData< ipReal64 > &pt1, const ipReal64 &maxDist, std::vector< Point2dData< ipReal64 > > &sampleColl)
function allowing to sample a parabolic arc between two points
#define IPSDKGEOMETRY_API
Import/Export macro for library IPSDKGeometry.
Definition: IPSDKGeometryExports.h:25