35#include "DGtalCatch.h"
36#include "DGtal/helpers/StdDefs.h"
37#include "DGtal/shapes/parametric/Lemniscate2D.h"
51 std::uniform_real_distribution<double>&
unif,
52 std::default_random_engine&
re )
58 while ( res == Approx(0.) );
63 std::uniform_real_distribution<double>&
unif,
64 std::default_random_engine&
re )
71 std::uniform_real_distribution<double>
unif(-10000,10000);
72 std::default_random_engine
re;
81 SECTION(
"Lower and upper bounds")
87 SECTION(
"x() with Pi parameter.")
90 REQUIRE_NOTHROW( shape.
x(M_PI) );
93 SECTION(
"x() with Pi parameter -> division by 0.")
96 REQUIRE_NOTHROW( shape.
x(M_PI) );
99 SECTION(
"xp() with Pi parameter -> division by 0.")
102 REQUIRE_NOTHROW( shape.
xp(M_PI) );
105 SECTION(
"xpp() with Pi parameter -> division by 0.")
108 REQUIRE_NOTHROW( shape.
xp(M_PI) );
RealPoint getLowerBound() const
RealPoint x(const double t) const
RealVector xp(const double t) const
RealPoint getUpperBound() const
Aim: Model of the concept StarShaped represents a lemniscate.
DGtal is the top-level namespace which contains all DGtal functions and types.
TEST_CASE("Lemniscate2D")
RealPoint notNullRealPoint(std::uniform_real_distribution< double > &unif, std::default_random_engine &re)
double notNullValue(std::uniform_real_distribution< double > &unif, std::default_random_engine &re)
Lemniscate2D< Space > Shape
std::default_random_engine re
std::uniform_real_distribution< double > unif(-1000000., 1000000.)
SECTION("Testing constant forward iterators")
REQUIRE(domain.isInside(aPoint))