mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-25 08:41:01 +01:00
[apps] Graph: add the maximum graph controller
This commit is contained in:
committed by
EmilieNumworks
parent
6703fedf54
commit
6fecd091f4
@@ -97,4 +97,17 @@ CartesianFunction::Point MinimumGraphController::computeExtremum(double start, d
|
||||
return m_function->nextMinimumFrom(start, step, max, context);
|
||||
}
|
||||
|
||||
MaximumGraphController::MaximumGraphController(Responder * parentResponder, GraphView * graphView, BannerView * bannerView, Shared::InteractiveCurveViewRange * curveViewRange, Shared::CurveViewCursor * cursor) :
|
||||
ExtremumGraphController(parentResponder, graphView, bannerView, curveViewRange, cursor, I18n::Message::NoMaximumFound)
|
||||
{
|
||||
}
|
||||
|
||||
const char * MaximumGraphController::title() {
|
||||
return I18n::translate(I18n::Message::Maximum);
|
||||
}
|
||||
|
||||
CartesianFunction::Point MaximumGraphController::computeExtremum(double start, double step, double max, Context * context) {
|
||||
return m_function->nextMaximumFrom(start, step, max, context);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user