for some reason I cannot make what should be a simple equation to work out right
Given. a Vector (ie. a Line) defined by X1,Y1, X2, Y2
find the point (x3,y3) that is ON the defined line, and is 40% the distance from (X1,Y1)
therefore all 3 points are on the line (x1,y1), (x3,y3), and (x2,y2)
where D is the distance from (x1,y1) to (x2,y2)
and D*0.40 is the distance from (x1,y1) to (x3,y3)
I THOUGHT it would be
dx=(x2-x1)*0.40
dy=(y2-y1)*0.40
x3=x1+dx
y3=y1+dx