
Doug C. answered 05/19/22
Math Tutor with Reputation to make difficult concepts understandable
The horizontal distance from A to B is given by 5 - (-1) = 6. We want to start at -1 and move 2/3 of that distance.
So the x-coordinate of the target point is -1 + 2/3(6) = -1 + 4 = 3.
In a similar fashion the y coordinate of the target point is found by:
7 + 2/3 (1 - 7) = 7 + 2/3(-6) = 7 + (-4) = 3.
So the point 2/3 of the way from A to B is (3,3).
desmos.com/calculator/kzqzboazow
In general if the starting point is given by (x1, y1), the ending point by (x2,y2) and k is the fraction of the distance from point 1 to point 2; the target point is given by:
(x1+k(x2-x1), y1+k(y2-y1))