[poincare/zoom] Rename k_defaultMaxInterval

Bring it in line with k_minimalDistance which as a similar role.

Change-Id: Ifc3ad793e8b5ff1e7f2598d0665abdd5c954e61f
This commit is contained in:
Gabriel Ozouf
2020-10-08 15:34:43 +02:00
committed by Émilie Feral
parent 0465cec924
commit c4aad1641e
2 changed files with 3 additions and 3 deletions

View File

@@ -18,7 +18,7 @@ public:
private:
static constexpr int k_peakNumberOfPointsOfInterest = 3;
static constexpr int k_sampleSize = Ion::Display::Width / 4;
static constexpr float k_defaultMaxInterval = 2e5f;
static constexpr float k_maximalDistance = 1e5f;
static constexpr float k_minimalDistance = 1e-2f;
static constexpr float k_asymptoteThreshold = 2e-1f;
static constexpr float k_stepFactor = 1.1f;

View File

@@ -8,7 +8,7 @@ constexpr int
Zoom::k_peakNumberOfPointsOfInterest,
Zoom::k_sampleSize;
constexpr float
Zoom::k_defaultMaxInterval,
Zoom::k_maximalDistance,
Zoom::k_minimalDistance,
Zoom::k_asymptoteThreshold,
Zoom::k_stepFactor,
@@ -27,7 +27,7 @@ void Zoom::InterestingRangesForDisplay(ValueAtAbscissa evaluation, float * xMin,
maxDistance = (tMax - tMin) / 2.f;
} else {
center = 0.f;
maxDistance = k_defaultMaxInterval / 2.f;
maxDistance = k_maximalDistance;
}
float resultX[2] = {FLT_MAX, - FLT_MAX};