(a: Rect, b: Rect, gapX: number)
| 705 | } |
| 706 | |
| 707 | function intersects(a: Rect, b: Rect, gapX: number): boolean { |
| 708 | return a.x < b.x + b.w + gapX && b.x < a.x + a.w + gapX && a.y < b.y + b.h && b.y < a.y + a.h; |
| 709 | } |
| 710 | |
| 711 | /** |
| 712 | * Lay a pill beside the box at `end` of the edge: the first lane whose pill |