[poincare] Coordinate2D out of the Expression class

This commit is contained in:
Léa Saviot
2019-08-12 17:43:47 +02:00
parent ffb731c321
commit 1e483d60ce
18 changed files with 148 additions and 125 deletions

View File

@@ -15,8 +15,8 @@ const char * RootGraphController::title() {
return I18n::translate(I18n::Message::Zeros);
}
Expression::Coordinate2D RootGraphController::computeNewPointOfInterest(double start, double step, double max, Context * context) {
return {.abscissa = functionStore()->modelForRecord(m_record)->nextRootFrom(start, step, max, context), .value = 0.0};
Coordinate2D RootGraphController::computeNewPointOfInterest(double start, double step, double max, Context * context) {
return Coordinate2D(functionStore()->modelForRecord(m_record)->nextRootFrom(start, step, max, context), 0.0);
}
}