(x0, y0, x1, y1)
| 517 | # quadratic Bezier lines |
| 518 | |
| 519 | def get_cos_sin(x0, y0, x1, y1): |
| 520 | dx, dy = x1 - x0, y1 - y0 |
| 521 | d = (dx * dx + dy * dy) ** .5 |
| 522 | # Account for divide by zero |
| 523 | if d == 0: |
| 524 | return 0.0, 0.0 |
| 525 | return dx / d, dy / d |
| 526 | |
| 527 | |
| 528 | def check_if_parallel(dx1, dy1, dx2, dy2, tolerance=1.e-5): |
no outgoing calls
no test coverage detected
searching dependent graphs…