Compute the cosine interpolated value between `y0` and `y1` at `t`. See [LinearInterpolate], [CubicInterpolate] and [HermiteInterpolate].