From 9e9033537ca0e8fefeb7e58a97be1830f2326989 Mon Sep 17 00:00:00 2001 From: Gabriel Ozouf Date: Thu, 29 Oct 2020 10:21:42 +0100 Subject: [PATCH] [WIP][interactive_curve_view_range] Tweak tolerance Change-Id: Iacfb7de81a4ab8a7fb73770053e189d596016201 --- apps/shared/interactive_curve_view_range.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/shared/interactive_curve_view_range.h b/apps/shared/interactive_curve_view_range.h index b649ed9a7..a44169986 100644 --- a/apps/shared/interactive_curve_view_range.h +++ b/apps/shared/interactive_curve_view_range.h @@ -58,7 +58,8 @@ protected: constexpr static float k_upperMaxFloat = 1E+8f; constexpr static float k_lowerMaxFloat = 9E+7f; constexpr static float k_maxRatioPositionRange = 1E5f; - constexpr static float k_orthonormalTolerance = 0.2f; + /* The tolerance is chosen to normalize sqrt(x) */ + constexpr static float k_orthonormalTolerance = 0.7f; static float clipped(float x, bool isMax) { return Range1D::clipped(x, isMax, k_lowerMaxFloat, k_upperMaxFloat); } /* In normalized settings, we put each axis so that 1cm = 2 units. For now, * the screen has size 43.2mm * 57.6mm.