mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
[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:
committed by
Émilie Feral
parent
71e7070657
commit
b10be2c60c
@@ -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.*/
|
||||
|
||||
Reference in New Issue
Block a user