Construct a `Bbox` by padding this one on all four sides. Parameters ---------- w_pad : float Width pad h_pad : float, optional Height pad. Defaults to *w_pad*.
(self, w_pad, h_pad=None)
| 621 | return Bbox(self._points + a) |
| 622 | |
| 623 | def padded(self, w_pad, h_pad=None): |
| 624 | """ |
| 625 | Construct a `Bbox` by padding this one on all four sides. |
| 626 | |
| 627 | Parameters |
| 628 | ---------- |
| 629 | w_pad : float |
| 630 | Width pad |
| 631 | h_pad : float, optional |
| 632 | Height pad. Defaults to *w_pad*. |
| 633 | |
| 634 | """ |
| 635 | points = self.get_points() |
| 636 | if h_pad is None: |
| 637 | h_pad = w_pad |
| 638 | return Bbox(points + [[-w_pad, -h_pad], [w_pad, h_pad]]) |
| 639 | |
| 640 | def translated(self, tx, ty): |
| 641 | """Construct a `Bbox` by translating this one by *tx* and *ty*.""" |
no test coverage detected