Merge pull request #957 from onlykzy/fix/fix-example-code-error

Fix error variable names in discrete_hausdorff_distance.cpp
This commit is contained in:
Vissarion Fisikopoulos 2022-01-03 16:21:04 +02:00 committed by GitHub
commit be6794b606
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,7 @@ int main()
typedef boost::geometry::model::linestring<point_type> linestring_type;
linestring_type ls1, ls2;
boost::geometry::read_wkt("LINESTRING(0 0,1 1,1 2,2 1,2 2)", ls2);
boost::geometry::read_wkt("LINESTRING(0 0,1 1,1 2,2 1,2 2)", ls1);
boost::geometry::read_wkt("LINESTRING(1 0,0 1,1 1,2 1,3 1)", ls2);
double res = boost::geometry::discrete_hausdorff_distance(ls1, ls2);