order a vector of points based on another vector
问题 I am working on a C++ application. I have 2 vectors of points vector<Point2f> vectorAll; vector<Point2f> vectorSpecial; Point2f is defined typedef Point_<float> Point2f; vectorAll has 1000 point while vectorSpecial has 10 points. First Step: I need to order the points in vectorSpecial depending on their order in vectorAll. So something like this: For each Point in vectorSpecial Get The Order Of that point in the vectorAll Insert it in the correct order in a new vector I can do a double loop