Mercator
Public Member Functions | Public Attributes | Private Attributes
Mercator::QuadInterp Class Reference

Helper to interpolate in a quad. More...

List of all members.

Public Member Functions

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

Public Attributes

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

Private Attributes

int 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 ( int  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.

References ep1, and noCalc.


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