Engauge Digitizer 2
|
Warps log coordinates to make them linear before passing them to code that accepts only linear coordinates. More...
#include <LinearToLog.h>
Public Member Functions | |
LinearToLog () | |
double | delinearize (double value, bool isLog) const |
Convert linear coordinates to log. This is a noop if the output is supposed to be linear. | |
double | linearize (double value, bool isLog) const |
Convert log coordinates to linear. This is a noop if the input is already linear. | |
Warps log coordinates to make them linear before passing them to code that accepts only linear coordinates.
For example, the Spline funtions are already complicated (third order polynomial interpolation) so upgrading them to handle log coordinates in addition to linear coordinates would be painful to implement and debug
Definition at line 13 of file LinearToLog.h.
LinearToLog::LinearToLog | ( | ) |
Definition at line 10 of file LinearToLog.cpp.
Convert linear coordinates to log. This is a noop if the output is supposed to be linear.
Definition at line 14 of file LinearToLog.cpp.
Convert log coordinates to linear. This is a noop if the input is already linear.
Definition at line 25 of file LinearToLog.cpp.