(arg)
| 188 | db.close() |
| 189 | |
| 190 | def do_system(arg): |
| 191 | print(f"==== running: {arg}") |
| 192 | err = os.system(arg) |
| 193 | if err: |
| 194 | print("FATAL: command failed") |
| 195 | sys.exit(err) |
| 196 | |
| 197 | # returns point closest to both rays of form o+t*d, and a weight factor that goes to 0 if the lines are parallel |
| 198 | def closest_point_2_lines(oa, da, ob, db): |