mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 16:57:31 +01:00
27 lines
1.0 KiB
C++
27 lines
1.0 KiB
C++
#ifndef GRAPH_EXTREMUM_GRAPH_CONTROLLER_H
|
|
#define GRAPH_EXTREMUM_GRAPH_CONTROLLER_H
|
|
|
|
#include "calculation_graph_controller.h"
|
|
|
|
namespace Graph {
|
|
|
|
class MinimumGraphController : public CalculationGraphController {
|
|
public:
|
|
MinimumGraphController(Responder * parentResponder, GraphView * graphView, BannerView * bannerView, Shared::InteractiveCurveViewRange * curveViewRange, Shared::CurveViewCursor * cursor);
|
|
const char * title() override;
|
|
private:
|
|
Poincare::Expression::Coordinate2D computeNewPointOfInterest(double start, double step, double max, Poincare::Context * context) override;
|
|
};
|
|
|
|
class MaximumGraphController : public CalculationGraphController {
|
|
public:
|
|
MaximumGraphController(Responder * parentResponder, GraphView * graphView, BannerView * bannerView, Shared::InteractiveCurveViewRange * curveViewRange, Shared::CurveViewCursor * cursor);
|
|
const char * title() override;
|
|
private:
|
|
Poincare::Expression::Coordinate2D computeNewPointOfInterest(double start, double step, double max, Poincare::Context * context) override;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|