|
qxLib
|
Go to the source code of this file.
Functions | |
| double | qx::linear_interpolation (const glm::dvec2 &p0, const glm::dvec2 &p1, double x) |
| Linear interpolation algorithm. More... | |
| double | qx::bilinear_interpolation (const glm::dvec3 &p0, const glm::dvec3 &p1, const glm::dvec3 &p2, const glm::dvec3 &p3, const glm::dvec2 &p) |
| Bilinear interpolation algorithm. More... | |
Definition in file interpolation.h.
|
inline |
Bilinear interpolation algorithm.
po.z is returned on any error
| p0 | - point 0 (x, y - coordinates, z - f(x, y)) |
| p1 | - point 1 (x, y - coordinates, z - f(x, y)) |
| p2 | - point 2 (x, y - coordinates, z - f(x, y)) |
| p3 | - point 3 (x, y - coordinates, z - f(x, y)) |
| p | - point (x, y - coordinates). It can be out of points square, in this case algorithm called extrapolation |
Definition at line 46 of file interpolation.h.
|
inline |
Linear interpolation algorithm.
| p0 | - point 0 (x - coordinate, y - f(x)) |
| p1 | - point 1 (x - coordinate, y - f(x)) |
| x | - point |
Definition at line 27 of file interpolation.h.