Calculate an interpolated value for selected animation-mode, and given elapsed time and total duration.
mode |
animation-mode to be used |
t |
elapsed time |
d |
total duration |
the interpolated value, between -1.0 and 2.0 |