Figure 1:
Interpolation for ray casting.