I'm a programmer trying to plot the positions between two points. The number of steps from Point1 to Point2 is variable, as are the x,y positions of the two points.
I can do it if the speed is constant. The function is as follows:
That's the program code (PureBasic). Forgive my ignorance but I believe the mathematical formula would be something like:
xinc = Beat(x1,x2)-Defeat(x1,x2)
yinc = Beat(y1,y2)-Defeat(y1,y2)
For a = 2 To steps
assuming that x2 is greater than x1, and y2 is greater than y1.
However, can anyone tell me how to plot the path between two points if the speed is steadily decelerating?
At high school I could possibly have done this by myself but that's years ago and I'm reduced to googling for the formula. Hours later, I still can't find it, so any help would be greatly appreciated.
Thanks for reading,