mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-21 06:40:37 +01:00
[apps] Graph: create a RootGraphController
This commit is contained in:
committed by
EmilieNumworks
parent
d1840dfe17
commit
37c3f6189d
22
apps/graph/graph/root_graph_controller.cpp
Normal file
22
apps/graph/graph/root_graph_controller.cpp
Normal file
@@ -0,0 +1,22 @@
|
||||
#include "root_graph_controller.h"
|
||||
#include "../app.h"
|
||||
|
||||
using namespace Shared;
|
||||
using namespace Poincare;
|
||||
|
||||
namespace Graph {
|
||||
|
||||
RootGraphController::RootGraphController(Responder * parentResponder, GraphView * graphView, BannerView * bannerView, Shared::InteractiveCurveViewRange * curveViewRange, CurveViewCursor * cursor) :
|
||||
CalculationGraphController(parentResponder, graphView, bannerView, curveViewRange, cursor, I18n::Message::NoZeroFound)
|
||||
{
|
||||
}
|
||||
|
||||
const char * RootGraphController::title() {
|
||||
return I18n::translate(I18n::Message::Zeros);
|
||||
}
|
||||
|
||||
CartesianFunction::Point RootGraphController::computeNewPointOfInterest(double start, double step, double max, Context * context) {
|
||||
return {.abscissa = m_function->nextRootFrom(start, step, max, context), .value = 0.0};
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user