Results 1 to 13 of 13

Thread: Simplest Detection of two lines intersecting -[RESOLVED]-

Threaded View

  1. #1

    Thread Starter
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349

    Simplest Detection of two lines intersecting -[RESOLVED]-

    What would be the simplest way to detect if two lines are crossing. This would be only given four coordinates and that the first two join to make one of the lines and the second two form the other line.

    i.e.
    Line 1: (x1,y1) to (x2,y2)
    Line 2: (x3,y3) to (x4,y4)

    I have an idea but its coming up with loads of cases where I would need to make alterations to the formula.

    I just need to simplify it to be able to Say: If Case1 AND Case2 AND Case3 AND ... AND Case(n) Then Intersects.

    Thanx.
    Last edited by Electroman; Apr 14th, 2004 at 09:55 PM.
    When your thread has been resolved please edit the original post in the thread ()
    and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.

    When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width