scale Pointf array into Points array.

This commit is contained in:
Joseph Lenox 2018-04-30 22:15:56 -05:00 committed by Joseph Lenox
parent 1de6134101
commit ac92b13e52

View File

@ -152,6 +152,15 @@ to_points(const std::vector<T> &items)
return pp;
}
inline Points
scale(const std::vector<Pointf>&in ) {
Points out;
for (const auto& p : in) {out.push_back(Point(scale_(p.x), scale_(p.y))); }
return out;
}
}
// start Boost