(points: list[Point])
| 821 | |
| 822 | |
| 823 | def check_contri(points: list[Point]) -> bool: |
| 824 | a, b, c, x, y, z = points |
| 825 | ab = a.distance(b) |
| 826 | bc = b.distance(c) |
| 827 | ca = c.distance(a) |
| 828 | xy = x.distance(y) |
| 829 | yz = y.distance(z) |
| 830 | zx = z.distance(x) |
| 831 | tol = 1e-9 |
| 832 | return ( |
| 833 | close_enough(ab, xy, tol) |
| 834 | and close_enough(bc, yz, tol) |
| 835 | and close_enough(ca, zx, tol) |
| 836 | ) |
| 837 | |
| 838 | |
| 839 | def check_ratio(points: list[Point]) -> bool: |
nothing calls this directly
no test coverage detected