MCPcopy Create free account
hub / github.com/google-deepmind/alphageometry / circle_of_and_why

Function circle_of_and_why

geometry.py:456–468  ·  view source on GitHub ↗

Why points are concyclic.

(
    points: list[Point], level: int = None
)

Source from the content-addressed store, hash-verified

454
455
456def 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
471def name_map(struct: Any) -> Any:

Callers

nothing calls this directly

Calls 3

get_circles_thru_allFunction · 0.85
equivsMethod · 0.80
why_cyclicMethod · 0.80

Tested by

no test coverage detected