DGtal  0.6.devel
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Types | Public Member Functions | Private Attributes
BallPredicate< TPoint > Class Template Reference

Public Types

typedef TPoint Point
typedef TPoint Point

Public Member Functions

 BallPredicate (double aCx, double aCy, double aR)
bool operator() (const TPoint &aPoint) const
 BallPredicate (double aCx, double aCy, double aR)
bool operator() (const TPoint &aPoint) const

Private Attributes

double myCx
double myCy
double myR

Detailed Description

template<typename TPoint>
class BallPredicate< TPoint >

Definition at line 85 of file testFMM.cpp.


Member Typedef Documentation

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

Definition at line 69 of file exampleFMM2D.cpp.

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

Definition at line 88 of file testFMM.cpp.


Constructor & Destructor Documentation

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

Definition at line 92 of file testFMM.cpp.

:
myCx(aCx), myCy(aCy), myR(aR)
{ ASSERT(myR > 0); };
template<typename TPoint>
BallPredicate< TPoint >::BallPredicate ( double  aCx,
double  aCy,
double  aR 
)
inline

Definition at line 73 of file exampleFMM2D.cpp.

:
myCx(aCx), myCy(aCy), myR(aR)
{ ASSERT(myR > 0); };

Member Function Documentation

template<typename TPoint>
bool BallPredicate< TPoint >::operator() ( const TPoint &  aPoint) const
inline

Definition at line 77 of file exampleFMM2D.cpp.

{
double d = std::sqrt( std::pow( (myCx-aPoint[0] ), 2)
+ std::pow( (myCy-aPoint[1] ), 2) );
if (d <= myR) return true;
else return false;
};
template<typename TPoint>
bool BallPredicate< TPoint >::operator() ( const TPoint &  aPoint) const
inline

Definition at line 96 of file testFMM.cpp.

{
double d = std::sqrt( std::pow( (myCx-aPoint[0] ), 2)
+ std::pow( (myCy-aPoint[1] ), 2) );
if (d <= myR) return true;
else return false;
};

Field Documentation

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

Definition at line 102 of file testFMM.cpp.

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

Definition at line 102 of file testFMM.cpp.

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

Definition at line 102 of file testFMM.cpp.


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