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

Method all_midps

graph.py:3007–3011  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3005 yield x, y, z
3006
3007 def all_midps(self) -> Generator[tuple[Point, ...], None, None]:
3008 for l in self.type2nodes[Line]:
3009 for a, b, c in utils.perm3(l.neighbors(Point)):
3010 if self.check_cong([a, b, a, c]):
3011 yield a, b, c
3012
3013 def all_circles(self) -> Generator[tuple[Point, ...], None, None]:
3014 for l in self.type2nodes[Length]:

Callers 3

test_enumerate_midpsMethod · 0.80
match_midp_perp_congFunction · 0.80
match_allFunction · 0.80

Calls 2

check_congMethod · 0.95
neighborsMethod · 0.80

Tested by 1

test_enumerate_midpsMethod · 0.64