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

Helper to interpolate in a quad. More...

Public Member Functions

float calc (float locX, float locY)
 Determine the interpolated value within the quad.
 
 QuadInterp (float size, float e1, float e2, float e3, float e4)
 Constructor. More...
 

Public Attributes

float ep1
 Values at the four corners.
 
float ep2
 
float ep3
 
float ep4
 

Private Attributes

float m_size
 The length of one side of the square quad.
 
bool noCalc
 Flag indicating that all points have the same value.
 

Detailed Description

Helper to interpolate in a quad.

The quad specified is assumed to be square of integer size, and the position specified for interpolation is specified in integer form. A check is included to avoid calculation if the value of each corner is the same.

Constructor & Destructor Documentation

Mercator::QuadInterp::QuadInterp ( float  size,
float  e1,
float  e2,
float  e3,
float  e4 
)
inline

Constructor.

Parameters
sizelength of one side of the square quad.
e1value at one corner of the square quad.
e2value at one corner of the square quad.
e3value at one corner of the square quad.
e4value at one corner of the square quad.

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