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

Function check_ratio

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

Source from the content-addressed store, hash-verified

837
838
839def check_ratio(points: list[Point]) -> bool:
840 a, b, c, d, m, n = points
841 ab = a.distance(b)
842 cd = c.distance(d)
843 return close_enough(ab * n, cd * m)
844
845
846def draw_angle(

Callers

nothing calls this directly

Calls 2

close_enoughFunction · 0.85
distanceMethod · 0.45

Tested by

no test coverage detected