| 576 | // ---------------------------------------------------------------------------------------- |
| 577 | |
| 578 | inline std::vector<rectangle> centered_rects ( |
| 579 | const std::vector<point>& pts, |
| 580 | unsigned long width, |
| 581 | unsigned long height |
| 582 | ) |
| 583 | { |
| 584 | std::vector<rectangle> tmp; |
| 585 | tmp.reserve(pts.size()); |
| 586 | for (auto& p : pts) |
| 587 | tmp.emplace_back(centered_rect(p, width, height)); |
| 588 | return tmp; |
| 589 | } |
| 590 | |
| 591 | // ---------------------------------------------------------------------------------------- |
| 592 |
no test coverage detected