Trying to make a define macro that does the trilinear interpolation to make the code smaller.