Add two similar triangles.
(
self, points: list[Point], deps: EmptyDependency
)
| 2370 | yield [c, a, c, b, z, y, z, x] |
| 2371 | |
| 2372 | def add_simtri( |
| 2373 | self, points: list[Point], deps: EmptyDependency |
| 2374 | ) -> list[Dependency]: |
| 2375 | """Add two similar triangles.""" |
| 2376 | add = [] |
| 2377 | hashs = [d.hashed() for d in deps.why] |
| 2378 | |
| 2379 | for args in self.enum_triangle(points): |
| 2380 | if problem.hashed('eqangle6', args) in hashs: |
| 2381 | continue |
| 2382 | add += self.add_eqangle(args, deps=deps) |
| 2383 | |
| 2384 | for args in self.enum_triangle(points): |
| 2385 | if problem.hashed('eqratio6', args) in hashs: |
| 2386 | continue |
| 2387 | add += self.add_eqratio(args, deps=deps) |
| 2388 | |
| 2389 | return add |
| 2390 | |
| 2391 | def check_simtri(self, points: list[Point]) -> bool: |
| 2392 | a, b, c, x, y, z = points |
no test coverage detected