31 #if defined(ImplicitNorm1Ball_RECURSES)
32 #error Recursive header files inclusion detected in ImplicitNorm1Ball.h
33 #else // defined(ImplicitNorm1Ball_RECURSES)
35 #define ImplicitNorm1Ball_RECURSES
37 #if !defined ImplicitNorm1Ball_h
39 #define ImplicitNorm1Ball_h
44 #include "DGtal/base/Common.h"
58 template <
typename TSpace>
121 if (this->
operator()(aPoint) > 0.0)
124 if (this->
operator()(aPoint) < 0.0)
227 template <
typename T>
236 #include "DGtal/shapes/implicit/ImplicitNorm1Ball.ih"
241 #endif // !defined ImplicitNorm1Ball_h
243 #undef ImplicitNorm1Ball_RECURSES
244 #endif // else defined(ImplicitNorm1Ball_RECURSES)
RealPoint myCenter
Ball center.
double operator()(const RealPoint &aPoint) const
bool isInside(const RealPoint &aPoint) const
static Self diagonal(Component val=1)
RealPoint getUpperBound() const
std::ostream & operator<<(std::ostream &out, const ATu0v1< TKSpace, TLinearAlgebra > &object)
void moveTo(const RealPoint &newCenter)
Space::RealPoint RealPoint
Aim: model of CEuclideanOrientedShape and CEuclideanBoundedShape concepts to create a ball for the L_...
RealPoint getLowerBound() const
DGtal is the top-level namespace which contains all DGtal functions and types.
ImplicitNorm1Ball< TSpace > Self
Aim: Implements basic operations that will be used in Point and Vector classes.
ImplicitNorm1Ball & operator=(const ImplicitNorm1Ball &other)
ImplicitNorm1Ball(const RealPoint &aCenter, const double &aHalfWidth)
Orientation orientation(const RealPoint &aPoint) const
double myHalfWidth
Ball HalfWidth.
void selfDisplay(std::ostream &out) const