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

Function check_eqratio

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

Source from the content-addressed store, hash-verified

787
788
789def check_eqratio(points: list[Point]) -> bool:
790 a, b, c, d, e, f, g, h = points
791 ab = a.distance(b)
792 cd = c.distance(d)
793 ef = e.distance(f)
794 gh = g.distance(h)
795 return close_enough(ab * gh, cd * ef)
796
797
798def check_cong(points: list[Point]) -> bool:

Callers

nothing calls this directly

Calls 2

close_enoughFunction · 0.85
distanceMethod · 0.45

Tested by

no test coverage detected