mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[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:
committed by
Émilie Feral
parent
0465cec924
commit
c4aad1641e
@@ -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;
|
||||
|
||||
@@ -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};
|
||||
|
||||
Reference in New Issue
Block a user