PDA

View Full Version : Lines


Obunako
07-21-2003, 02:28 AM
Hello,

I'm doing a demo where i need to know if two lines ( x1,y1,x2,y2 first x3,y3,x4,y4 second line ) are cross. Otherwise, i need a line colision algorithm, i have one but i'm sure that using math i can obtain a better performance.

Thanks :blush: .

Dia Kharrat
07-21-2003, 03:20 AM
I found the following page useful:

http://mathworld.wolfram.com/Line-LineInte...tersection.html (http://mathworld.wolfram.com/Line-LineIntersection.html)

Let me know if that helps :)

anubis
07-21-2003, 04:06 AM
nice page, it just helped me out with a problem... bookmarked !

moomin
07-21-2003, 05:20 AM
Hmmmmm having to write a piece of code that solves simulataneous equations is apparent. I may have a go at that soon.