linear interpolation?
in
Programming Questions
•
2 years ago
So i'm trying to get from number A (offset) to number B(target) in the period of time specified (period) | time (time) is always increasing.
(formula not code)
i = offset + time * ( (target - offset) / period)
when i graph it out on a graphing calculator it seems to work, but i'm having problems translating it to code.
http://gcalc.net/
5+x*( (10-5) /15)
(5 = offset, x = time, 10 = target, 15 = period)
1