DGtal 2.0.0
Loading...
Searching...
No Matches
MyBallPredicate< TP, TI > Struct Template Reference

Public Types

typedef TP Point
typedef TI Integer

Public Member Functions

 MyBallPredicate (const Integer &aR)
bool operator() (const Point &aP) const

Data Fields

Integer myRad

Detailed Description

template<typename TP, typename TI>
struct MyBallPredicate< TP, TI >

Definition at line 70 of file testStabbingCircleComputer.cpp.

Member Typedef Documentation

◆ Integer

template<typename TP, typename TI>
typedef TI MyBallPredicate< TP, TI >::Integer

Definition at line 73 of file testStabbingCircleComputer.cpp.

◆ Point

template<typename TP, typename TI>
typedef TP MyBallPredicate< TP, TI >::Point

Definition at line 72 of file testStabbingCircleComputer.cpp.

Constructor & Destructor Documentation

◆ MyBallPredicate()

template<typename TP, typename TI>
MyBallPredicate< TP, TI >::MyBallPredicate ( const Integer & aR)
inline

Member Function Documentation

◆ operator()()

template<typename TP, typename TI>
bool MyBallPredicate< TP, TI >::operator() ( const Point & aP) const
inline

Definition at line 75 of file testStabbingCircleComputer.cpp.

75{ return aP.dot(aP) <= myRad*myRad; };

References myRad.

Field Documentation

◆ myRad

template<typename TP, typename TI>
Integer MyBallPredicate< TP, TI >::myRad

Definition at line 76 of file testStabbingCircleComputer.cpp.

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


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