1 #ifndef GRAIL_LINEAR_FUNCTION_H
2 #define GRAIL_LINEAR_FUNCTION_H
15 LinearFunction(std::pair<float, float> firstPoint, std::pair<float, float> secondPoint);
17 virtual float Sample(
float argument)
const override;
19 float GetSlope()
const;
20 float GetIntercept()
const;
22 CurveTypeId GetTypeId()
const override;
26 float intercept = 0.0f;
The Curve class - Defines objects transforming one value into the other.
Definition: Curve.hh:17
Definition: LinearFunction.hh:12
virtual float Sample(float argument) const override
Sample - User-defined method which processes provided value (currently vector of values - multidemens...
Definition: LinearFunction.cpp:39