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

Function check_para

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

Source from the content-addressed store, hash-verified

685
686
687def check_para(points: list[Point]) -> bool:
688 a, b, c, d = points
689 ab = Line(a, b)
690 cd = Line(c, d)
691 if ab.same(cd):
692 return False
693 return ab.is_parallel(cd)
694
695
696def check_perp(points: list[Point]) -> bool:

Callers 1

check_para_or_collFunction · 0.85

Calls 3

sameMethod · 0.95
is_parallelMethod · 0.95
LineClass · 0.70

Tested by

no test coverage detected