Get a first angle between line l1 and line l2.
(
self, l1: Line, l2: Line
)
| 1128 | return None, None |
| 1129 | |
| 1130 | def get_first_angle( |
| 1131 | self, l1: Line, l2: Line |
| 1132 | ) -> tuple[Angle, list[Dependency]]: |
| 1133 | """Get a first angle between line l1 and line l2.""" |
| 1134 | d1, d2 = l1._val, l2._val |
| 1135 | |
| 1136 | d1s = d1.all_reps() |
| 1137 | d2s = d2.all_reps() |
| 1138 | |
| 1139 | found = d1.first_angle(d2s) |
| 1140 | if found is None: |
| 1141 | found = d2.first_angle(d1s) |
| 1142 | if found is None: |
| 1143 | return None, [] |
| 1144 | ang, x2, x1 = found |
| 1145 | found = ang.opposite, x1, x2 |
| 1146 | |
| 1147 | ang, x1, x2 = found |
| 1148 | return ang, d1.deps_upto(x1) + d2.deps_upto(x2) |
| 1149 | |
| 1150 | def _get_or_create_angle( |
| 1151 | self, l1: Line, l2: Line, deps: Dependency |
nothing calls this directly
no outgoing calls
no test coverage detected