Return a list of new `Bbox` objects formed by splitting the original one with vertical lines at fractional positions given by *args*.
(self, *args)
| 560 | self._points[0] + (W, H)]) |
| 561 | |
| 562 | def splitx(self, *args): |
| 563 | """ |
| 564 | Return a list of new `Bbox` objects formed by splitting the original |
| 565 | one with vertical lines at fractional positions given by *args*. |
| 566 | """ |
| 567 | xf = [0, *args, 1] |
| 568 | x0, y0, x1, y1 = self.extents |
| 569 | w = x1 - x0 |
| 570 | return [Bbox([[x0 + xf0 * w, y0], [x0 + xf1 * w, y1]]) |
| 571 | for xf0, xf1 in itertools.pairwise(xf)] |
| 572 | |
| 573 | def splity(self, *args): |
| 574 | """ |