(
a: tuple[float, float, float, float],
b: tuple[float, float, float, float],
)
| 116 | |
| 117 | |
| 118 | def _intersection_area( |
| 119 | a: tuple[float, float, float, float], |
| 120 | b: tuple[float, float, float, float], |
| 121 | ) -> float: |
| 122 | x0 = max(a[0], b[0]) |
| 123 | y0 = max(a[1], b[1]) |
| 124 | x1 = min(a[2], b[2]) |
| 125 | y1 = min(a[3], b[3]) |
| 126 | return _rect_area((x0, y0, x1, y1)) |
| 127 | |
| 128 | |
| 129 | def _rects_intersect( |
no test coverage detected