Why points are concyclic.
(
points: list[Point], level: int = None
)
| 454 | |
| 455 | |
| 456 | def circle_of_and_why( |
| 457 | points: list[Point], level: int = None |
| 458 | ) -> tuple[Circle, list[Any]]: |
| 459 | """Why points are concyclic.""" |
| 460 | for c0 in get_circles_thru_all(*points): |
| 461 | for c in c0.equivs(): |
| 462 | if all([p in c.edge_graph for p in points]): |
| 463 | cycls = list(set(points)) |
| 464 | why = c.why_cyclic(cycls, level) |
| 465 | if why is not None: |
| 466 | return c, why |
| 467 | |
| 468 | return None, None |
| 469 | |
| 470 | |
| 471 | def name_map(struct: Any) -> Any: |
nothing calls this directly
no test coverage detected