Reputation: 21572
What is the recommended way to flip a polygon horizontally so that its bounding box remains constant?
Upvotes: 1
Views: 399
Reputation: 1057
Either you can use boost::geometry::for_each_point, supplying a functor which calculates the flipped coordinates (using e.g. an x-coordinate member variable calculated before using boost::geometry::envelope).
Or you can use boost::geometry::transform using a matrix transformer
Either way should work, there is no recommended way
Upvotes: 1