kallaballa / libnfporb

Implementation of a robust no-fit polygon generation in a C++ library using an orbiting approach
GNU General Public License v3.0
106 stars 32 forks source link

How to rotate polygon_t using boost rotate_transformer? #16

Closed qpoisson closed 5 years ago

qpoisson commented 5 years ago

I tried to use the boost transformer to rotate a polygon:

namespace trans = boost::geometry::strategy::transform;
polygon_t p;
trans::rotate_transformer<boost::geometry::degree, coord_t, 2, 2> rotate(p);

I got error when compiling the code in visual studio: Error C2665 'sin': none of the 3 overloads could convert all the argument types

I understand it was caused by no libnfporb::LongDouble version of cos. How can I fix this issue ?