I want to draw a straight dashed line segment given an intersection point between two lines segments. I am wondering, what is the best way to do this since I don't really have a second point to draw this line segment?
What I have done so far is calculate the intersection point of the two line segments.
So now I have one point, my question is how do I get the second point or what should I set the second point to be if I want the line to be straight from the intersection point?
So, I was thinking, I want to find an equidistant point between two intersecting lines such that that point is not the intersecting point of those two lines.
Image drawn is not exact or to scale but something like below:
How can I find the equidistant point? What's the formula for it? How do I derive the formula?
EDIT: I need a way to do this algebraically because I want to translate this into code.