DGtal 2.0.0
Loading...
Searching...
No Matches
BallFunctor< TPoint > Class Template Reference

Public Types

typedef TPoint Point
typedef double Value

Public Member Functions

 BallFunctor (double aCx, double aCy, double aR)
Value operator() (const TPoint &aPoint) const

Private Attributes

double myCx
double myCy
double myR

Detailed Description

template<typename TPoint>
class BallFunctor< TPoint >

Definition at line 109 of file testFMM.cpp.

Member Typedef Documentation

◆ Point

template<typename TPoint>
typedef TPoint BallFunctor< TPoint >::Point

Definition at line 112 of file testFMM.cpp.

◆ Value

template<typename TPoint>
typedef double BallFunctor< TPoint >::Value

Definition at line 113 of file testFMM.cpp.

Constructor & Destructor Documentation

◆ BallFunctor()

template<typename TPoint>
BallFunctor< TPoint >::BallFunctor ( double aCx,
double aCy,
double aR )
inline

Definition at line 116 of file testFMM.cpp.

116 :
117 myCx(aCx), myCy(aCy), myR(aR)
118 { ASSERT(myR > 0); };
double myCy
Definition testFMM.cpp:127
double myCx
Definition testFMM.cpp:127
double myR
Definition testFMM.cpp:127

References myCx, myCy, and myR.

Member Function Documentation

◆ operator()()

template<typename TPoint>
Value BallFunctor< TPoint >::operator() ( const TPoint & aPoint) const
inline

Definition at line 120 of file testFMM.cpp.

121 {
122 double d = std::sqrt( std::pow( (myCx-aPoint[0] ), 2)
123 + std::pow( (myCy-aPoint[1] ), 2) );
124 return (d - myR);
125 };

References aPoint, myCx, myCy, and myR.

Field Documentation

◆ myCx

template<typename TPoint>
double BallFunctor< TPoint >::myCx
private

Definition at line 127 of file testFMM.cpp.

Referenced by BallFunctor(), and operator()().

◆ myCy

template<typename TPoint>
double BallFunctor< TPoint >::myCy
private

Definition at line 127 of file testFMM.cpp.

Referenced by BallFunctor(), and operator()().

◆ myR

template<typename TPoint>
double BallFunctor< TPoint >::myR
private

Definition at line 127 of file testFMM.cpp.

Referenced by BallFunctor(), and operator()().


The documentation for this class was generated from the following file: