mirror of
https://github.com/boostorg/geometry.git
synced 2025-05-12 14:01:47 +00:00
Updates for assign->assign_values
[SVN r71211]
This commit is contained in:
parent
3cf4b0e1fe
commit
7edfdba5dc
@ -23,7 +23,7 @@ int main()
|
|||||||
typedef model::box<point> box;
|
typedef model::box<point> box;
|
||||||
|
|
||||||
box b;
|
box b;
|
||||||
assign(b, 2, 2, 5, 5);
|
assign_values(b, 2, 2, 5, 5);
|
||||||
|
|
||||||
point ll, lr, ul, ur;
|
point ll, lr, ul, ur;
|
||||||
assign_box_corners(b, ll, lr, ul, ur);
|
assign_box_corners(b, ll, lr, ul, ur);
|
||||||
|
@ -34,7 +34,7 @@ int main()
|
|||||||
<< std::endl;
|
<< std::endl;
|
||||||
|
|
||||||
boost::geometry::model::box<point> box;
|
boost::geometry::model::box<point> box;
|
||||||
boost::geometry::assign(box, 0, 0, 5, 5);
|
boost::geometry::assign_values(box, 0, 0, 5, 5);
|
||||||
|
|
||||||
std::cout
|
std::cout
|
||||||
<< "polygon and box are spatially "
|
<< "polygon and box are spatially "
|
||||||
|
@ -29,8 +29,8 @@ int main()
|
|||||||
namespace bg = boost::geometry;
|
namespace bg = boost::geometry;
|
||||||
|
|
||||||
/*< Any Boost.Geometry function can be used for legacy point now. Here: assign and distance >*/
|
/*< Any Boost.Geometry function can be used for legacy point now. Here: assign and distance >*/
|
||||||
bg::assign(p1, 1, 1);
|
bg::assign_values(p1, 1, 1);
|
||||||
bg::assign(p2, 2, 2);
|
bg::assign_values(p2, 2, 2);
|
||||||
|
|
||||||
double d = bg::distance(p1, p2);
|
double d = bg::distance(p1, p2);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user