I have two lines, each having starting and end coordinates $(x_1,y_1),(x_2,y_2)$ and $(u_1,v_1),(u_2,v_2)$, with
$(u_1,v_1) = (0,0)$
They are not necessarily intersecting yet, but definitely intersect when one line is extended.
I would like to know how to find their intersection point $(s,t)$ only given their current coordinates.
Rewrite the line segments as line equations!
you then have:
\begin{cases} y = \frac{y_2-y_1}{x_2-x_1}(x_1+x) \\ v = \frac{v_2-v_1}{u_2-u_1}(u_1+u) \end{cases}
Solving this system of equations gives the cordinate of intersection