# How to calculate the vector direction to point , so the object will move to

i like to be able to calculate the vector values from object A to destination position. For Example in this image object A to destination B . What will be the x/y positions all the way until it reach distention B. where the x,y origin is in bottom left side

• Isn't a subtraction of A from B sufficient (Diff = B - A)? Also, the amount of positions between A and B is infinite. What exactly are you trying to do? – Alexandre Vaillancourt Jun 3 '17 at 13:12
• to calculate the movement from A to B – user3689 Jun 3 '17 at 14:20
• That's not enough information to give an answer... If you want to move 10% of the distance just scale the vector by 10%. I feel like this question lacks research effort. – Charanor Jun 3 '17 at 16:02

Most of the time your 'C' gets normalized, so still points in the same direction, but has 'length = 1', so C_n = C / Length of C. . In that case x should be between 0 and 'Lenght of C'.