32#include "DGtal/base/Common.h"
33#include "ConfigTest.h"
34#include "DGtalCatch.h"
35#include "DGtal/helpers/StdDefs.h"
36#include "DGtal/geometry/volumes/distance/LpMetric.h"
37#include "DGtal/geometry/volumes/distance/CMetricSpace.h"
57 SECTION(
"Testing LpMetric distance values")
62 REQUIRE( l2_2D(a,b) == Approx(std::sqrt(2.0)) );
63 REQUIRE( l55_2D(a,b) == Approx(1.1343125) );
Aim: implements l_p metrics.
Closest closest(const Point &origin, const Point &first, const Point &second) const
RawValue rawDistance(const Point &aP, const Point &aQ) const
Aim: Implements basic operations that will be used in Point and Vector classes.
DGtal is the top-level namespace which contains all DGtal functions and types.
Aim: defines the concept of metric spaces.
TEST_CASE("Testing LpMetric")
SECTION("Testing constant forward iterators")
REQUIRE(domain.isInside(aPoint))