Jump to content


- - - - -

Lines


3 replies to this topic

#1 Obunako

    New Member

  • Members
  • Pip
  • 8 posts

Posted 21 July 2003 - 08: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: .

#2 Dia

    DevMaster Staff

  • Administrators
  • 1089 posts

Posted 21 July 2003 - 09:20 AM

I found the following page useful:

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

Let me know if that helps :)

#3 anubis

    Senior Member

  • Members
  • PipPipPipPip
  • 2225 posts

Posted 21 July 2003 - 10:06 AM

nice page, it just helped me out with a problem... bookmarked !
If Prolog is the answer, what is the question ?

#4 moomin

    Member

  • Members
  • PipPip
  • 44 posts

Posted 21 July 2003 - 11:20 AM

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





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users