|
RCKit
|
Setter class that implements linear transform of its input value. More...
#include <Linear.h>


Public Member Functions | |
| Linear (float gain, int offset) | |
| virtual void | input (int value) |
Setter class that implements linear transform of its input 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] |
1.7.5.1