MathHelper interpolation stuff.