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

Public Types

typedef TPoint Point
typedef double Value
typedef TPoint Point
typedef double Value

Public Member Functions

 BallFunctor (double aCx, double aCy, double aR)
Value operator() (const TPoint &aPoint) const
 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 108 of file testFMM.cpp.


Member Typedef Documentation

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

Definition at line 92 of file exampleFMM2D.cpp.

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

Definition at line 111 of file testFMM.cpp.

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

Definition at line 93 of file exampleFMM2D.cpp.

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

Definition at line 112 of file testFMM.cpp.


Constructor & Destructor Documentation

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

Definition at line 115 of file testFMM.cpp.

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

Definition at line 96 of file exampleFMM2D.cpp.

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

Member Function Documentation

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

Definition at line 100 of file exampleFMM2D.cpp.

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

Definition at line 119 of file testFMM.cpp.

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

Field Documentation

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

Definition at line 124 of file testFMM.cpp.

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

Definition at line 124 of file testFMM.cpp.

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

Definition at line 124 of file testFMM.cpp.


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