PLaSK library
|
Functions | |
template<typename T > | |
T | linear (double p_lo, const T &d_lo, double p_hi, const T &d_hi, double p) |
Calculate linear interpolation (in 1D space). | |
template<typename T > | |
T | bilinear (double p_l, double p_r, double p_b, double p_t, const T &d_lb, const T &d_rb, const T &d_rt, const T &d_lt, double p_x, double p_y) |
Calculate blilinear interpolation (in 2D space). | |
template<typename T > | |
T | trilinear (double p_l, double p_r, double p_b, double p_t, double p_lo, double p_hi, const T &lo_d_lb, const T &lo_d_rb, const T &lo_d_rt, const T &lo_d_lt, const T &hi_d_lb, const T &hi_d_rb, const T &hi_d_rt, const T &hi_d_lt, double p_x, double p_y, double p_lohi) |
Calculate trililinear interpolation (in 3D space). | |
|
inline |
Calculate blilinear interpolation (in 2D space).
p_l,p_r,p_b,p_t | left, right, bottom, top positions, must fulfill: p_l < p_r, p_b < p_t |
d_lb,d_rb,d_rt,d_lt | value in points: left-bottom, right-bottom, right-top, left-top |
p_x,p_y | requested point |
Definition at line 44 of file interpolation.hpp.
|
inline |
Calculate linear interpolation (in 1D space).
p_lo,d_lo | first point and value in it |
p_hi,d_hi | second point and value in it, must fulfill: p_lo < p_hi |
p | requested point |
Definition at line 31 of file interpolation.hpp.
|
inline |
Calculate trililinear interpolation (in 3D space).
p_l,p_r,p_b,p_t | left, right, bottom, top positions, must fulfill: p_l < p_r, p_b < p_t |
p_lo,p_hi | positions of points in thirth direction, must fulfill p_lo < p_hi |
lo_d_lb,lo_d_rb,lo_d_rt,lo_d_lt | value in points: lo-left-bottom, lo-right-bottom, lo-right-top, lo-left-top |
hi_d_lb,hi_d_rb,hi_d_rt,hi_d_lt | value in points: hi-left-bottom, hi-right-bottom, hi-right-top, hi-left-top |
p_x,p_y,p_lohi | requested point |
Definition at line 64 of file interpolation.hpp.