31 #if defined(Astroid2D_RECURSES)
32 #error Recursive header files inclusion detected in Astroid2D.h
33 #else // defined(Astroid2D_RECURSES)
35 #define Astroid2D_RECURSES
37 #if !defined Astroid2D_h
44 #include "DGtal/base/Common.h"
45 #include "DGtal/shapes/parametric/StarShaped2D.h"
60 template <
typename TSpace>
84 Astroid2D(
const double x0,
const double y0,
85 const double a,
const double b );
227 template <
typename T>
231 return std::abs(x - y) <= std::numeric_limits<T>::epsilon();
244 template <
typename T>
246 operator<< ( std::ostream & out,
const Astroid2D<T> &
object );
253 #include "DGtal/shapes/parametric/Astroid2D.ih"
258 #endif // !defined Astroid2D_h
260 #undef Astroid2D_RECURSES
261 #endif // else defined(Astroid2D_RECURSES)
RealPoint x(const double t) const
Aim: Model of the concept StarShaped represents an astroid.
void moveTo(const RealPoint &newCenter)
RealVector xpp(const double t) const
RealPoint getLowerBound() const
Space::RealPoint RealPoint
bool isAlmostEqual(T x, T y) const
Space::RealVector RealVector
void selfDisplay(std::ostream &out) const
std::ostream & operator<<(std::ostream &out, const ATu0v1< TKSpace, TLinearAlgebra > &object)
DGtal is the top-level namespace which contains all DGtal functions and types.
Astroid2D & operator=(const Astroid2D &other)=delete
double parameter(const RealPoint &p) const
PointVector< dim, double > RealPoint
Aim: Implements basic operations that will be used in Point and Vector classes.
RealVector xp(const double t) const
RealPoint getUpperBound() const