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

Function check_aconst

numericals.py:615–621  ·  view source on GitHub ↗
(args: list[Point])

Source from the content-addressed store, hash-verified

613
614
615def check_aconst(args: list[Point]) -> bool:
616 a, b, c, d, num, den = args
617 d = d + a - c
618 ang = ang_between(a, b, d)
619 if ang < 0:
620 ang += np.pi
621 return close_enough(ang, num * np.pi / den)
622
623
624def check(name: str, args: list[Union[gm.Point, Point]]) -> bool:

Callers

nothing calls this directly

Calls 2

ang_betweenFunction · 0.85
close_enoughFunction · 0.85

Tested by

no test coverage detected