mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-14 10:25:59 +08:00
scale Pointf array into Points array.
This commit is contained in:
parent
cc4477eb3f
commit
77ae0df2ad
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user