We have 2 lines (A and B – see picture below). Line A starts at p1 and ends at p2 Line B starts at p3 and ends at p4.
Point p5 is the point that line A intersects line B if extended.
How do I find out the distance between p2 and p5?
EDIT:
To be more clear, how do I find point p5?

Best Regards!
Get the intersection by
Then you can just call p2.dist(p5) to get the distance.