Add three eqratios through a list of 6 points (due to parallel lines).
(
self, points: list[Point], deps: EmptyDependency
)
| 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 |
no test coverage detected