Mercator
Public Member Functions | Public Attributes | Private Attributes | List of all members
Mercator::LinInterp Class Reference

Helper to interpolate on a line. More...

Public Member Functions

float calc (float loc)
 Determine the interpolated value along the line.
 
 LinInterp (float size, float l, float h)
 Constructor. More...
 

Public Attributes

float ep1
 Values at the two ends.
 
float ep2
 

Private Attributes

float m_size
 The length of the line.
 
bool noCalc
 Flag indicating that both points have the same value.
 

Detailed Description

Helper to interpolate on a line.

The line specified is of integer length, and the position specified as an integer. A check is included to avoid calculation if the value at each end is the same.

Constructor & Destructor Documentation

Mercator::LinInterp::LinInterp ( float  size,
float  l,
float  h 
)
inline

Constructor.

Parameters
sizelength of the line.
lvalue at one end of the line.
hvalue at one end of the line.

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