diff options
Diffstat (limited to 'tracker-pt')
-rw-r--r-- | tracker-pt/point-filter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tracker-pt/point-filter.cpp b/tracker-pt/point-filter.cpp index 2b32028b..f031940b 100644 --- a/tracker-pt/point-filter.cpp +++ b/tracker-pt/point-filter.cpp @@ -44,7 +44,7 @@ const PointOrder& point_filter::operator()(const PointOrder& input) { vec2 tmp = input[i] - state_[i]; f x = sqrt(tmp.dot(tmp)); - dist = std::max((f)0, x); + dist = std::max(dist, x); } if (dist < (f)1e-6) |