Suppose I have 3 points. A and B and C. I want the line segment through C, parallel to the line AB.
I want the D
with the given distance of d
on the line which connects C
to the AB
line with the slope of 90 degrees (vertical). Basically I want to move the point C
, closer to the AB
line (half the distance in my case).
I know how to get a point between 2 points but I don't know how to get the point on the AB
line.
Edit:
I have A
, B
and C
points. I want the bold line below:
It's at half the distance between the AB
and C
and has the same slope as AB
.
How I solved it
I didn't quite use the distance. I got the parallel line through the C
point and got the line between the 2 lines by calculating the mid point between A
and A'
and B
and B'
. Then connected the 2 new points.