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

Function check_cyclic

numericals.py:703–710  ·  view source on GitHub ↗
(points: list[Point])

Source from the content-addressed store, hash-verified

701
702
703def check_cyclic(points: list[Point]) -> bool:
704 points = list(set(points))
705 (a, b, c), *ps = points
706 circle = Circle(p1=a, p2=b, p3=c)
707 for d in ps:
708 if not close_enough(d.distance(circle.center), circle.radius):
709 return False
710 return True
711
712
713def bring_together(

Callers

nothing calls this directly

Calls 3

close_enoughFunction · 0.85
CircleClass · 0.70
distanceMethod · 0.45

Tested by

no test coverage detected