Engauge Digitizer  2
Public Member Functions | List of all members
LinearToLog Class Reference

Warps log coordinates to make them linear before passing them to code that accepts only linear coordinates. More...

#include <LinearToLog.h>

Public Member Functions

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.
 

Detailed Description

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 7 of file LinearToLog.h.


The documentation for this class was generated from the following files: