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

Function check_circle

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

Source from the content-addressed store, hash-verified

650
651
652def check_circle(points: list[Point]) -> bool:
653 if len(points) != 4:
654 return False
655 o, a, b, c = points
656 oa, ob, oc = o.distance(a), o.distance(b), o.distance(c)
657 return close_enough(oa, ob) and close_enough(ob, oc)
658
659
660def check_coll(points: list[Point]) -> bool:

Callers

nothing calls this directly

Calls 2

close_enoughFunction · 0.85
distanceMethod · 0.45

Tested by

no test coverage detected