|
R2 Shaders
|
Functions for performing bilinear interpolation. More...

Go to the source code of this file.
Functions | |
| vec3 | R2_bilinearInterpolate3 (const vec3 x0y0, const vec3 x1y0, const vec3 x0y1, const vec3 x1y1, const vec2 p) |
Functions for performing bilinear interpolation.
Definition in file R2Bilinear.h.
| vec3 R2_bilinearInterpolate3 | ( | const vec3 | x0y0, |
| const vec3 | x1y0, | ||
| const vec3 | x0y1, | ||
| const vec3 | x1y1, | ||
| const vec2 | p | ||
| ) |
Bilinearly interpolate between the set of four vectors. Iff p == (0,0) then the function yields x0y0. Iff p == (1,1) then the function yields x1y1. Any intermediate values of p yield a bilinear mix of the four vectors.
| x0y0 | The upper left vector |
| x1y0 | The upper right vector |
| x0y1 | The lower left vector |
| x1y1 | The lower right vector |
| p | The interpolation vector |
Definition at line 23 of file R2Bilinear.h.
1.8.12