[apps/graph] Fix computeYRange for polar/cartesian functions

Was very slow, compute only 1000 values to evaluate the yRange
This commit is contained in:
Léa Saviot
2019-09-03 13:57:06 +02:00
parent a4099c4c3e
commit c3ee6a71e7
4 changed files with 14 additions and 5 deletions

View File

@@ -37,6 +37,7 @@ public:
virtual bool shouldClipTRangeToXRange() const { return true; } // Returns true if the function will not be displayed if t is outside x range.
virtual double tMin() const { return NAN; }
virtual double tMax() const { return NAN; }
virtual float rangeStep() const { return NAN; }
// Name
int nameWithArgument(char * buffer, size_t bufferSize);