CGAL 6.1 - dD Frechet Distance
Loading...
Searching...
No Matches

Functions

template<class PointRange , class NamedParameters = parameters::Default_named_parameters>
bool CGAL::is_Frechet_distance_larger (const PointRange &polyline1, const PointRange &polyline2, const double distance_bound, const NamedParameters &np=parameters::default_values())
 determines if the Frechet distance between two polylines is larger than a given distance bound.
 
template<class PointRange , class NamedParameters = parameters::Default_named_parameters>
std::pair< double, double > CGAL::bounded_error_Frechet_distance (const PointRange &polyline1, const PointRange &polyline2, const double error_bound, const NamedParameters &np=parameters::default_values())
 returns an estimate of the Fréchet distance between the two polylines that is at most error_bound.
 

Function Documentation

◆ bounded_error_Frechet_distance()

template<class PointRange , class NamedParameters = parameters::Default_named_parameters>
std::pair< double, double > CGAL::bounded_error_Frechet_distance ( const PointRange &  polyline1,
const PointRange &  polyline2,
const double  error_bound,
const NamedParameters &  np = parameters::default_values() 
)

#include <CGAL/Frechet_distance.h>

returns an estimate of the Fréchet distance between the two polylines that is at most error_bound.

away from the actual Fréchet distance between the two polylines.

Template Parameters
Traitsa model of FrechetDistanceTraits
PointRangea model of the concept RandomAccessContainer with Traits::Point_d as value type.
NamedParametersa sequence of Named Parameters
Parameters
polyline1the first polyline defined by a sequence of consecutive points
polyline2the second polyline defined by a sequence of consecutive points
error_bounda maximum bound by which the Fréchet distance estimate is allowed to deviate from the actual Fréchet distance.
npan optional sequence of Named Parameters among the ones listed below:
Optional Named Parameters
Precondition
the polylines must not be empty
Returns
an interval enclosing the exact result, the difference between the upper and the lower bound being less than error_bound.
Examples
Frechet_distance/Frechet_distance_3.cpp, and Frechet_distance/Frechet_distance_d.cpp.

◆ is_Frechet_distance_larger()

template<class PointRange , class NamedParameters = parameters::Default_named_parameters>
bool CGAL::is_Frechet_distance_larger ( const PointRange &  polyline1,
const PointRange &  polyline2,
const double  distance_bound,
const NamedParameters &  np = parameters::default_values() 
)

#include <CGAL/Frechet_distance.h>

determines if the Frechet distance between two polylines is larger than a given distance bound.

Template Parameters
Traitsa model of FrechetDistanceTraits
PointRangea model of the concept RandomAccessContainer with Traits::Point_d as value type.
NamedParametersa sequence of Named Parameters
Parameters
polyline1the first polyline defined by a sequence of consecutive points
polyline2the second polyline defined by a sequence of consecutive points
distance_boundthe distance to compare against
npan optional sequence of Named Parameters among the ones listed below:
Optional Named Parameters
Precondition
the polylines must not be empty
Examples
Frechet_distance/Frechet_distance_2.cpp.