DGtal
1.5.beta
|
#include <iostream>
#include <random>
#include "DGtalCatch.h"
#include "DGtal/helpers/StdDefs.h"
#include "DGtal/shapes/parametric/Astroid2D.h"
Go to the source code of this file.
Typedefs | |
typedef Astroid2D< Space > | Shape |
Functions | |
double | notNullValue (std::uniform_real_distribution< double > &unif, std::default_random_engine &re) |
RealPoint | notNullRealPoint (std::uniform_real_distribution< double > &unif, std::default_random_engine &re) |
TEST_CASE ("Astroid2D") | |
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Functions for testing the methods of the Astroid2D shape. In particular, test the parameter() method for cas leadind to a division by 0.
This file is part of the DGtal library.
Definition in file testAstroid2D.cpp.
Definition at line 45 of file testAstroid2D.cpp.
RealPoint notNullRealPoint | ( | std::uniform_real_distribution< double > & | unif, |
std::default_random_engine & | re | ||
) |
Definition at line 59 of file testAstroid2D.cpp.
References notNullValue().
Referenced by TEST_CASE().
double notNullValue | ( | std::uniform_real_distribution< double > & | unif, |
std::default_random_engine & | re | ||
) |
TEST_CASE | ( | "Astroid2D" | ) |
Definition at line 66 of file testAstroid2D.cpp.
References DGtal::Astroid2D< TSpace >::center(), DGtal::Astroid2D< TSpace >::getLowerBound(), DGtal::Astroid2D< TSpace >::getUpperBound(), notNullRealPoint(), notNullValue(), DGtal::Astroid2D< TSpace >::parameter(), REQUIRE(), and SECTION().