From 068ed96d79d175831b1fc8fac59ca4931bab82b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9a=20Saviot?= Date: Mon, 10 Feb 2020 16:26:20 +0100 Subject: [PATCH] [apps/range_1D] Add comment abour k_minFloat --- apps/shared/range_1D.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/shared/range_1D.h b/apps/shared/range_1D.h index a528540f0..1557e82b6 100644 --- a/apps/shared/range_1D.h +++ b/apps/shared/range_1D.h @@ -16,6 +16,8 @@ namespace Shared { class __attribute__((packed)) Range1D final { public: + /* If m_min and m_max are too close, we cannot divide properly the range by + * the number of pixels, which creates a drawing problem. */ constexpr static float k_minFloat = 1E-4f; constexpr static float k_default = 10.0f; Range1D(float min = -k_default, float max = k_default) :