comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Finding the intersection of 2 short lines
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Finding the intersection of 2 short lines [message #79215] Mon, 13 February 2012 02:39
jimmybobs is currently offline  jimmybobs
Messages: 9
Registered: January 2009
Junior Member
Hi everyone.

I'm trying to find a way of detecting the crossing point of two short
lines (as part of a larger problem with detecting overlapping
polygons). I've used intersect.pro which gives me the general
intersect, but then I have to use the mother of all ugly if statements
(which I'm having trouble getting working) to detect whether the
intersect is actually on my short lines or extended away somewhere
else.

Is there a more elegant way of doing this? The code needs to find
whether the two lines cross, and return the intersection point.

Thanks all,
Jimmy
[Message index]
 
Read Message
Previous Topic: pth order auto-regressive process with a specified mean and variance
Next Topic: Re: outputting 2D arrays into a txt file

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 01:41:17 PDT 2025

Total time taken to generate the page: 0.87974 seconds