(*points: list[Point])
| 418 | |
| 419 | |
| 420 | def get_lines_thru_all(*points: list[Point]) -> list[Line]: |
| 421 | line2count = defaultdict(lambda: 0) |
| 422 | points = set(points) |
| 423 | for p in points: |
| 424 | for l in p.neighbors(Line): |
| 425 | line2count[l] += 1 |
| 426 | return [l for l, count in line2count.items() if count == len(points)] |
| 427 | |
| 428 | |
| 429 | def line_of_and_why( |
no test coverage detected