I'm implementing lerp function with time parameter and got stucked at how to involve time(t) in the formular. I have the original coordinates of vP(xP,yP) and the destination coordinates of vM(xM,yM). And it was asked to go through the distance at exactly three seconds.
I know from the lerp equation I can get any points between vP and vM. But how can I achieve the goal of three seconds? Thanks!