[apps/range_1D] Add comment abour k_minFloat

This commit is contained in:
Léa Saviot
2020-02-10 16:26:20 +01:00
committed by Émilie Feral
parent ed753b793b
commit 068ed96d79

View File

@@ -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) :