I am trying to sort points on a plane by their polar angle w.r.t. the point O. The simplified version of the code looks like this:
bool comparePolar(point A, point B, point O){
//if point B lies to the left of the edge OA, return false
//return true
}
So, how to pass the point O to this function when the sort function is called, which will use comparePolar as its compare function?