Formula to linearly interpolate the value z2,2 in tridimensional space z = f(x, y),
given: x0, x1, y0,
y1, x2,
y2, z0,0, z1,0, z0,1, and
z1,1,
where: x0 < x2 < x1,
and y0 > y2 > y1.
|
Fig. 1 Definition sketch.
|
x1 - x2 x2 - x0
z top = __________ z 0,0 + __________ z 1,0
x1 - x0 x1 - x0
| (1) |
x1 - x2 x2 - x0
z bot = __________ z 0,1 + __________ z 1,1
x1 - x0 x1 - x0
| (2) |
y0 - y2 y2 - y1
z 2,2 = __________ z bot + __________ z top
y0 - y1 y0 - y1
| (3) |
|
|