Finding the intersection of two lines a given perpendicular distance from the line of intersection
I’m looking for help to solve the following situation. I have a line segment defined by two points P1 and P2. And I have a ray that starts at P3 and intersects segment P1P2 at P4. I want to calculate P5 so that it is always a given length l perpendicular distance from P1P2.