Merge pull request #803 from afischerdev/lib-wpterror
Waypoint distance error
This commit is contained in:
commit
58536be655
1 changed files with 1 additions and 1 deletions
|
|
@ -116,7 +116,7 @@ public final class WaypointMatcherImpl implements WaypointMatcher {
|
|||
double r22 = x2 * x2 + y2 * y2;
|
||||
double radius = Math.abs(r12 < r22 ? y1 * dx - x1 * dy : y2 * dx - x2 * dy) / d;
|
||||
|
||||
if (radius < mwp.radius) {
|
||||
if (radius <= mwp.radius) {
|
||||
double s1 = x1 * dx + y1 * dy;
|
||||
double s2 = x2 * dx + y2 * dy;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue