From ca9cb63909da015c6ba39ff38e04c4b396f79497 Mon Sep 17 00:00:00 2001 From: Gabriel Ozouf Date: Wed, 18 Nov 2020 10:06:48 +0100 Subject: [PATCH] [poincare/zoom] Reduce the step for searching points of interest The algorithm to search for points of interest will miss some. We reduce the step to make it more precise, so that tan(x) and tan(x-90) have the same profile. Change-Id: Ia1bac1d4e7b98d2d6f36f8ce12ed9dac67d40198 --- poincare/include/poincare/zoom.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poincare/include/poincare/zoom.h b/poincare/include/poincare/zoom.h index dae416203..415e83fb6 100644 --- a/poincare/include/poincare/zoom.h +++ b/poincare/include/poincare/zoom.h @@ -45,7 +45,7 @@ private: static constexpr float k_minimalDistance = 1e-2f; static constexpr float k_asymptoteThreshold = 2e-1f; static constexpr float k_explosionThreshold = 1e1f; - static constexpr float k_stepFactor = 1.1f; + static constexpr float k_stepFactor = 1.09f; static constexpr float k_breathingRoom = 0.3f; static constexpr float k_forceXAxisThreshold = 0.2f; static constexpr float k_maxRatioBetweenPointsOfInterest = 100.f;