|
Mercator
|
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. | |
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.
|
inline |
1.8.15