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?