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. | |
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.
| Mercator::QuadInterp::QuadInterp | ( | int | size, | |
| float | e1, | |||
| float | e2, | |||
| float | e3, | |||
| float | e4 | |||
| ) | [inline] |
1.5.6