(
left: { x: number; y: number; width: number; height: number },
right: { x: number; y: number; width: number; height: number }
)
| 73 | } |
| 74 | |
| 75 | function intersects( |
| 76 | left: { x: number; y: number; width: number; height: number }, |
| 77 | right: { x: number; y: number; width: number; height: number } |
| 78 | ) { |
| 79 | return !( |
| 80 | left.x + left.width / 2 <= right.x - right.width / 2 || |
| 81 | left.x - left.width / 2 >= right.x + right.width / 2 || |
| 82 | left.y + left.height / 2 <= right.y - right.height / 2 || |
| 83 | left.y - left.height / 2 >= right.y + right.height / 2 |
| 84 | ); |
| 85 | } |
| 86 | |
| 87 | function optionList(values: string[]) { |
| 88 | const counts = new Map<string, number>(); |
no outgoing calls
no test coverage detected