
I am taking a graphics programming course, and I am looking at how Linear interpolation can be used to move points from one location to another location within a certain time.
My mathematics background information is poor, so can someone explain how the formula given for LERP (to animate movement) is used.
When it comes to programming, I can implement this in no time, but what is the point with out understanding the equation and technical information.
$$P(t) = (1-t)P + tQ $$
The above is the formula given. What I am confused about is are variables used. What is $P$ , and $Q$? are these the vector points, and if yes, can they be any letters, or is this a convention in maths?
Why does $t$ have to be between $0$ and $1$?
PandQcan be anything really? Ah, I see for thetis must be between 0 and 1 since it's the range. To calculatetgiving the scenario above, since I have 4stepst = t/steps. And to find thexandyvalue of each points, all I have to do is use the given equation; 'P(t)=(1−t)P+tQ'. So for step 2 it will beP(t) = (1-0.25)2+0.25*20which gives the value if 6.5. Is this correct? – Moynzy Mar 05 '15 at 20:23