(self, points: list[Point])
| 981 | return add |
| 982 | |
| 983 | def check_coll(self, points: list[Point]) -> bool: |
| 984 | points = list(set(points)) |
| 985 | if len(points) < 3: |
| 986 | return True |
| 987 | line2count = defaultdict(lambda: 0) |
| 988 | for p in points: |
| 989 | for l in p.neighbors(Line): |
| 990 | line2count[l] += 1 |
| 991 | return any([count == len(points) for _, count in line2count.items()]) |
| 992 | |
| 993 | def why_coll(self, args: tuple[Line, list[Point]]) -> list[Dependency]: |
| 994 | line, points = args |