mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-04 07:10:40 +08:00
scale Pointf array into Points array.
This commit is contained in:
parent
1de6134101
commit
ac92b13e52
@ -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