[poincare/zoom] Method SanitizeRange

Create a method to clean up an ill-formed range, ie a range whose bounds
are not finite, or where max <= min.

Change-Id: If4525e65f95385cfa970be72bbcc21ad84286bfa
This commit is contained in:
Gabriel Ozouf
2020-10-15 15:41:34 +02:00
committed by Émilie Feral
parent 71e7070657
commit b10be2c60c
2 changed files with 35 additions and 0 deletions

View File

@@ -24,6 +24,7 @@ public:
static void FullRange(ValueAtAbscissa evaluation, float tMin, float tMax, float tStep, float * fMin, float * fMax, Context * context, const void * auxiliary);
static void CombineRanges(int length, const float * mins, const float * maxs, float * minRes, float * maxRes);
static void SanitizeRange(float * xMin, float * xMax, float * yMin, float * yMax, float normalRatio);
/* If shrink is false, the range will be set to ratio by increasing the size
* of the smallest axis. If it is true, the longest axis will be reduced.*/