* More generic function for interpolating