- Notifications
You must be signed in to change notification settings - Fork5
Commitb087b01
committed
Fix an ancient error in dist_ps (distance from point to line segment), which
a number of other geometric operators also depend on. It miscalculated theslope of the perpendicular to the given line segment anytime that slope wasother than 0, infinite, or +/-1. In some cases the error would be maskedbecause the true closest point on the line segment was one of its endpointsrather than the intersection point, but in other cases it could give anarbitrarily bad answer. Per bug #4872 from Nick Roosevelt.Bug goes clear back to Berkeley days, so patch all supported branches.Make a couple of cosmetic adjustments while at it.1 parent8d355d7 commitb087b01
1 file changed
+14
-15
lines changedLines changed: 14 additions & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
2449 | 2449 |
| |
2450 | 2450 |
| |
2451 | 2451 |
| |
2452 |
| - | |
2453 |
| - | |
2454 |
| - | |
2455 |
| - | |
| 2452 | + | |
| 2453 | + | |
| 2454 | + | |
| 2455 | + | |
2456 | 2456 |
| |
2457 | 2457 |
| |
2458 | 2458 |
| |
2459 |
| - | |
2460 |
| - | |
2461 |
| - | |
| 2459 | + | |
2462 | 2460 |
| |
2463 |
| - | |
| 2461 | + | |
2464 | 2462 |
| |
2465 | 2463 |
| |
2466 | 2464 |
| |
| |||
2469 | 2467 |
| |
2470 | 2468 |
| |
2471 | 2469 |
| |
2472 |
| - | |
2473 |
| - | |
| 2470 | + | |
| 2471 | + | |
2474 | 2472 |
| |
2475 | 2473 |
| |
2476 | 2474 |
| |
2477 | 2475 |
| |
2478 | 2476 |
| |
| 2477 | + | |
2479 | 2478 |
| |
2480 | 2479 |
| |
2481 | 2480 |
| |
| |||
2484 | 2483 |
| |
2485 | 2484 |
| |
2486 | 2485 |
| |
2487 |
| - | |
| 2486 | + | |
2488 | 2487 |
| |
2489 | 2488 |
| |
2490 | 2489 |
| |
| |||
3790 | 3789 |
| |
3791 | 3790 |
| |
3792 | 3791 |
| |
3793 |
| - | |
| 3792 | + | |
3794 | 3793 |
| |
3795 | 3794 |
| |
3796 | 3795 |
| |
| |||
3803 | 3802 |
| |
3804 | 3803 |
| |
3805 | 3804 |
| |
3806 |
| - | |
| 3805 | + | |
3807 | 3806 |
| |
3808 | 3807 |
| |
3809 | 3808 |
| |
| |||
3814 | 3813 |
| |
3815 | 3814 |
| |
3816 | 3815 |
| |
3817 |
| - | |
| 3816 | + | |
3818 | 3817 |
| |
3819 | 3818 |
| |
3820 | 3819 |
| |
|
0 commit comments
Comments
(0)