#include <Linear.h>
Public Member Functions | |
Linear (float gain, int offset) | |
virtual void | input (int value) |
Linear implements a y = mx + x linear transform of the input value. The resulting output value is sent to the next Setter (the target) in the chain.
Linear::Linear | ( | float | gain, | |
int | offset | |||
) |
Constructor. Output will be calculated according to out = (in * gain) + offset
void Linear::input | ( | int | value | ) | [virtual] |
Input the value to be transformed
[in] | value | The input value |
Reimplemented from Setter.
References Setter::input().