|
wavelength 1.0.0
|
Straight-line interpolator. More...
#include <interpolator.h>


Public Member Functions | |
| LinearInterpolator (float fY0, float fY1, float fX0, float fX1) | |
| Construct an interpolator. | |
| void | Reset (float fY0, float fY1, float fX0, float fX1) override |
| Replace the end points. | |
| float | Interp (float fX) override |
| Map an input along the line. | |
| Public Member Functions inherited from Interpolator | |
| virtual | ~Interpolator () |
| Release the interpolator. | |
| virtual float | Eval (float fX) |
| Map an input, clamping it to the range first. | |
| float | GetY0 () const |
| float | GetY1 () const |
| float | GetX0 () const |
| float | GetX1 () const |
Additional Inherited Members | |
| Protected Attributes inherited from Interpolator | |
| float | mY0 |
| float | mY1 |
| float | mX0 |
| float | mX1 |
Straight-line interpolator.
The RTTI records the class as deriving from Interpolator. The object is 0x1c bytes.
| LinearInterpolator::LinearInterpolator | ( | float | fY0, |
| float | fY1, | ||
| float | fX0, | ||
| float | fX1 ) |
Construct an interpolator.
| fY0 | The output at the start of the range. |
| fY1 | The output at the end of the range. |
| fX0 | The start of the input range. |
| fX1 | The end of the input range. |
|
overridevirtual |
Replace the end points.
An input range narrower than 1e-6 gives a slope of 0.
| fY0 | The output at the start of the range. |
| fY1 | The output at the end of the range. |
| fX0 | The start of the input range. |
| fX1 | The end of the input range. |
Implements Interpolator.
|
overridevirtual |
Map an input along the line.
| fX | The input. |
Implements Interpolator.