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

Method add_simtri2

graph.py:2397–2413  ·  view source on GitHub ↗

Add two similar reflected triangles.

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

Source from the content-addressed store, hash-verified

2395 )
2396
2397 def add_simtri2(
2398 self, points: list[Point], deps: EmptyDependency
2399 ) -> list[Dependency]:
2400 """Add two similar reflected triangles."""
2401 add = []
2402 hashs = [d.hashed() for d in deps.why]
2403 for args in self.enum_triangle2(points):
2404 if problem.hashed('eqangle6', args) in hashs:
2405 continue
2406 add += self.add_eqangle(args, deps=deps)
2407
2408 for args in self.enum_triangle(points):
2409 if problem.hashed('eqratio6', args) in hashs:
2410 continue
2411 add += self.add_eqratio(args, deps=deps)
2412
2413 return add
2414
2415 def add_contri(
2416 self, points: list[Point], deps: EmptyDependency

Callers 2

add_pieceMethod · 0.95
add_simtri_checkMethod · 0.95

Calls 5

enum_triangle2Method · 0.95
add_eqangleMethod · 0.95
enum_triangleMethod · 0.95
add_eqratioMethod · 0.95
hashedMethod · 0.80

Tested by

no test coverage detected