31#if defined(ScalarFunctors_RECURSES)
32#error Recursive header files inclusion detected in ScalarFunctors.h
35#define ScalarFunctors_RECURSES
37#if !defined ScalarFunctors_h
39#define ScalarFunctors_h
44#include "DGtal/base/Common.h"
54 template <
typename TScalar>
70 if ( d >=
myR )
return 0.0;
79 template <
typename TScalar>
94 return ( d >
myR ) ? 0.0 :
myV0;
105#include "DGtal/math/ScalarFunctors.ih"
112#undef ScalarFunctors_RECURSES
functors namespace gathers all DGtal functors.
DGtal is the top-level namespace which contains all DGtal functions and types.
Scalar operator()(Scalar d) const
BallConstantFunction(Scalar v0, Scalar r)
HatFunction(Scalar v0, Scalar r)
Scalar operator()(Scalar d) const