Okay - I need collision detetion. I know what my formula does, but I'm not exactly sure of the equation.

Suppose you have two points, P1, and P2. Each has an X1, Y1, X2, and a Y2. Basically they're lines. I know if they're parallel or not, but if they aren't parallel, how can I find the point at which the two lines will interect? I just need the X and Y coordinates. Thanks.


________________________
The Answer to Life, The Universe, And Everything...
is...
is...
42.