From 469eff22db856b778a8c06f7bff42dbb2cb6385c Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 2 Nov 2021 15:27:20 +0100 Subject: tracker/pt: fix typo in pt fitler --- tracker-pt/point-filter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tracker-pt') 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) -- cgit v1.2.3