I guess this is more of a math question but I will just leave this here

any comment would be great! I'm self taught in java and new to programming games sorta...

Here is what I need to do.

Get int Ax and Ay to equal int Bx and By while staying on the line so for example:

Ax = 5

Ay = 7

Bx = 9

By = 5

Now on a graph this would make a line segment. I need the Ax and Ay to reach Bx and By simultaneously while keeping the

Ax and Ay on the line segment to make it look smooth so what constant number or anything for that matter would I be able to add or subtract to the A points to eventually get them to the B points without Ax equaling Bx before Ay equals By or vice-versa. Any comment will be helpful unless it's not....