I would like to find a point between two points.
I know :
- A(x,y)
- B(x,y,)
- The angle (direction) between A and B
- The distance I would like between A and C (I can change this distance if I want)
I use :
Code: Select all
Macro distance(x1,y1,x2,y2)
Int(Sqr((x2-x1)*(x2-x1) + (y2-y1)*(y2-y1)) )
EndMacro
Macro direction(x1,y1,x2,y2) ; angle
ATan2((y2- y1),(x2- x1))
EndMacro
(The distance between A and C = what I like (10 for example)).
An image to understand :

How can I do that, please ?
Thank you.