Lines

77c60eaca2812f5b7b91b03705fa64e3
0
Obunako 101 Jul 21, 2003 at 08:28

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: .

3 Replies

Please log in or register to post a reply.

Fdbdc4176840d77fe6a8deca457595ab
0
dk 158 Jul 21, 2003 at 09:20

I found the following page useful:

http://mathworld.wolfram.com/Line-LineInte…tersection.html

Let me know if that helps :)

F7a4a748ecf664f189bb704a660b3573
0
anubis 101 Jul 21, 2003 at 10:06

nice page, it just helped me out with a problem… bookmarked !

27340afba8e6bbd010c1e520a843e50f
0
moomin 101 Jul 21, 2003 at 11:20

Hmmmmm having to write a piece of code that solves simulataneous equations is apparent. I may have a go at that soon.