Return a list of new `Bbox` objects formed by splitting the original one with horizontal lines at fractional positions given by *args*.
(self, *args)
| 571 | for xf0, xf1 in itertools.pairwise(xf)] |
| 572 | |
| 573 | def splity(self, *args): |
| 574 | """ |
| 575 | Return a list of new `Bbox` objects formed by splitting the original |
| 576 | one with horizontal lines at fractional positions given by *args*. |
| 577 | """ |
| 578 | yf = [0, *args, 1] |
| 579 | x0, y0, x1, y1 = self.extents |
| 580 | h = y1 - y0 |
| 581 | return [Bbox([[x0, y0 + yf0 * h], [x1, y0 + yf1 * h]]) |
| 582 | for yf0, yf1 in itertools.pairwise(yf)] |
| 583 | |
| 584 | def count_contains(self, vertices): |
| 585 | """ |