Well, this question will be a bit abstract.
I have an icon that moves along a line that is represented by a series of coordinates stored in a vector, and I repeat them through. The distance between the coordinates is variable. Therefore, sometimes the icon will move slowly and smoothly, while others it will scan several 100 pixels at a time.
I am having problems with the algorithm for separating each set of coordinates, which it should move among themselves in a set of relative coordinates, where the number is based on size, so the transition is smooth, regardless of how much it coordinates on one line.
Any ideas would be highly appreciated. Thank:)
source
share