|
Mercator
0.4.0
|
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 |
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.
|
inline |
Constructor.
| size | length of the line. |
| l | value at one end of the line. |
| h | value at one end of the line. |
1.8.13