31#if defined(Astroid2D_RECURSES)
32#error Recursive header files inclusion detected in Astroid2D.h
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>
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>
253#include "DGtal/shapes/parametric/Astroid2D.ih"
260#undef Astroid2D_RECURSES
Aim: Model of the concept StarShaped represents an astroid.
Astroid2D & operator=(const Astroid2D &other)=delete
RealPoint getLowerBound() const
void moveTo(const RealPoint &newCenter)
RealVector xpp(const double t) const
RealPoint x(const double t) const
RealVector xp(const double t) const
Space::RealVector RealVector
RealPoint getUpperBound() const
Space::RealPoint RealPoint
Astroid2D(const RealPoint &aPoint, const double a, const double b)
Astroid2D(const double x0, const double y0, const double a, const double b)
Astroid2D(const Astroid2D &other)
void selfDisplay(std::ostream &out) const
bool isAlmostEqual(T x, T y) const
double parameter(const RealPoint &p) const
Aim: Implements basic operations that will be used in Point and Vector classes.
PointVector< dim, double > RealPoint
DGtal is the top-level namespace which contains all DGtal functions and types.
std::ostream & operator<<(std::ostream &out, const ClosedIntegerHalfPlane< TSpace > &object)