mirror of
https://github.com/boostorg/geometry.git
synced 2025-05-11 05:24:02 +00:00
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:
commit
be6794b606
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user