This is used by topoInterpolate.

bilinearInterp(x, y, gx, gy, g)

## Arguments

x 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

## Value

vector of interpolated values