1 #ifndef GRAIL_LINEARLY_INTERPOLATED_CURVE_H
2 #define GRAIL_LINEARLY_INTERPOLATED_CURVE_H
5 #include "../../libs/vector2/vector2.h"
17 virtual float Sample(
float argument)
const override;
19 void SetPointY(std::size_t pointIndex,
float y);
21 std::vector<Vector2>& GetPoints();
22 const std::vector<Vector2>& GetPoints()
const;
24 CurveTypeId GetTypeId()
const override;
27 std::vector<Vector2> points{};
The Curve class - Defines objects transforming one value into the other.
Definition: Curve.hh:17
Definition: LinearlyInterpolatedCurve.hh:12
virtual float Sample(float argument) const override
Sample - User-defined method which processes provided value (currently vector of values - multidemens...
Definition: LinearlyInterpolatedCurve.cpp:20