diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2021-11-02 15:27:20 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2021-11-02 15:28:15 +0100 |
commit | 469eff22db856b778a8c06f7bff42dbb2cb6385c (patch) | |
tree | 24054883c1ccb434ce547c0740ba565e39a447f6 /tracker-pt | |
parent | 1044c1d3cda8c0cd57447f95138498e5d7045b04 (diff) |
tracker/pt: fix typo in pt fitler
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) |