mirror of https://github.com/CGAL/cgal
more similar curves
This commit is contained in:
parent
05f8d0719b
commit
9cd5ce7acc
|
|
@ -13,7 +13,7 @@ using Point = Traits::Point_d;
|
|||
int main(int , char*)
|
||||
{
|
||||
std::array<Point,4> A = { Point(0,0,0,0), Point(1,0,0,0), Point(1,1,0,1),Point(1,1,1,0)};
|
||||
std::array<Point,4> B = { Point(0,0,0,0), Point(1,0,0,1), Point(1,1,0,0),Point(1,1,1,1)};
|
||||
std::array<Point,4> B = { Point(0,0,0,0), Point(1,0,0,0), Point(1,1,0,0),Point(1,1,1,1)};
|
||||
|
||||
std::pair<double, double> res = CGAL::approximate_Frechet_distance<Traits>(A, B, 0.000001);
|
||||
std::cout << "The Frechet distance between the polylines is between " << res.first << " and " << res.second << std::endl;
|
||||
|
|
|
|||
Loading…
Reference in New Issue