Ask Your Question

Revision history [back]

operations between vector<point2f> and Point2f

Hi all,

is there an easier way to do the following:

Point2f point;
vector<Point2f> pointList;
//...
for (int i = 0; i < pointList.size(); i++)
{
    pointList[i] -= point;
}

Would be nice to do that directly in a way like, but that seems not to work:

pointList -= point;

Thanks