Interpolates between two values based on their type.
The starting value.
The ending value.
The interpolation fraction (0 to 1).
The interpolated value.
Interpolates between two values based on their type.