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

Function check_coll

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

Source from the content-addressed store, hash-verified

658
659
660def check_coll(points: list[Point]) -> bool:
661 a, b = points[:2]
662 l = Line(a, b)
663 for p in points[2:]:
664 if abs(l(p.x, p.y)) > ATOM:
665 return False
666 return True
667
668
669def check_ncoll(points: list[Point]) -> bool:

Callers 6

test_sketch_2l1cMethod · 0.85
test_sketch_3peqMethod · 0.85
test_sketch_triangleMethod · 0.85
check_ncollFunction · 0.85
check_para_or_collFunction · 0.85
check_midpFunction · 0.85

Calls 1

LineClass · 0.70

Tested by 3

test_sketch_2l1cMethod · 0.68
test_sketch_3peqMethod · 0.68
test_sketch_triangleMethod · 0.68