[apps/shared] CartesianFunction: default domain of parametric and polar

functions is 0..2*pi
This commit is contained in:
Émilie Feral
2019-09-03 15:40:56 +02:00
parent dba9912bbe
commit 8ce062acc4

View File

@@ -131,7 +131,7 @@ void CartesianFunction::setPlotType(PlotType newPlotType) {
Expression e = expressionClone();
m_model.tidy();
double tMin = newPlotType == PlotType::Cartesian ? -INFINITY : 0.0;
double tMax = newPlotType == PlotType::Cartesian ? INFINITY : 360.0;
double tMax = newPlotType == PlotType::Cartesian ? INFINITY : 2.0*M_PI;
setTMin(tMin);
setTMax(tMax);
recordData()->setPlotType(newPlotType);