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

Method all_same_line

graph.py:2469–2477  ·  view source on GitHub ↗
(
      self, a: Point, b: Point
  )

Source from the content-addressed store, hash-verified

2467 self.cache[hashed] = premises
2468
2469 def all_same_line(
2470 self, a: Point, b: Point
2471 ) -> Generator[tuple[Point, Point], None, None]:
2472 ab = self._get_line(a, b)
2473 if ab is None:
2474 return
2475 for p1, p2 in utils.comb2(ab.neighbors(Point)):
2476 if {p1, p2} != {a, b}:
2477 yield p1, p2
2478
2479 def all_same_angle(
2480 self, a: Point, b: Point, c: Point, d: Point

Callers 1

all_same_angleMethod · 0.95

Calls 2

_get_lineMethod · 0.95
neighborsMethod · 0.80

Tested by

no test coverage detected