Scale

class Scale {
float _a;
float _b;
float _minVal;
float _maxVal;
}

Members

Functions

convert
float convert(float x)

input value is converted and returned.

initialize
void initialize(RealRange inputRange, RealRange outputRange)

Calculates the coefficient a and b based on the ranges given.

Meta