Are the docs for returnPoints of convexHull incorrect?

asked 2016-11-20 05:58:32 -0500

onixie gravatar image

updated 2018-09-29 18:27:44 -0500

the last sentense about returnPoints of convexHull says

"When the output array is std::vector, the flag is ignored, and the output depends on the type of the vector: std::vector<int> implies returnPoints=true, std::vector<point> implies returnPoints=false."

Is the true/false value of returnPoints written oppositely?

edit retag flag offensive close merge delete

Comments

you're right here.

berak gravatar imageberak ( 2016-11-20 09:59:47 -0500 )edit

yep a bug, you can file an issue and provide a pull request to fix this?

StevenPuttemans gravatar imageStevenPuttemans ( 2016-11-21 08:54:11 -0500 )edit