This is used by topoInterpolate
.
bilinearInterp(x, y, gx, gy, g)
vector of x values at which to interpolate
vector of y values at which to interpolate
vector of x values for the grid
vector of y values for the grid
matrix of the grid values
vector of interpolated values