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

Method add_eqratio3

graph.py:2093–2107  ·  view source on GitHub ↗

Add three eqratios through a list of 6 points (due to parallel lines).

(
      self, points: list[Point], deps: EmptyDependency
  )

Source from the content-addressed store, hash-verified

2091 return add
2092
2093 def add_eqratio3(
2094 self, points: list[Point], deps: EmptyDependency
2095 ) -> list[Dependency]:
2096 """Add three eqratios through a list of 6 points (due to parallel lines)."""
2097 a, b, c, d, m, n = points
2098 # a -- b
2099 # m -- n
2100 # c -- d
2101 add = []
2102 add += self.add_eqratio([m, a, m, c, n, b, n, d], deps)
2103 add += self.add_eqratio([a, m, a, c, b, n, b, d], deps)
2104 add += self.add_eqratio([c, m, c, a, d, n, d, b], deps)
2105 if m == n:
2106 add += self.add_eqratio([m, a, m, c, a, b, c, d], deps)
2107 return add
2108
2109 def add_eqratio4(
2110 self, points: list[Point], deps: EmptyDependency

Callers 2

add_pieceMethod · 0.95
add_eqratio4Method · 0.95

Calls 1

add_eqratioMethod · 0.95

Tested by

no test coverage detected