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

Home » Public Forums » archive » Re: Is there a quick way to find the intersection of two 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
Re: Is there a quick way to find the intersection of two lines? [message #58612 is a reply to message #58610] Mon, 04 February 2008 16:33 Go to previous message
ben.bighair is currently offline  ben.bighair
Messages: 221
Registered: April 2007
Senior Member
On Feb 4, 7:08 pm, eyuc...@gmail.com wrote:
> Hi there,
>
> I have two sets of x-y data:
> x1=[1,2,3,4,5] y1=[3.2,7.4,8.2,9.3,7.9];
> x2=[1.2,1.4,2.3,2.8,3.3,3.9,4.1,4.5,5.2]
> y2=[3.1,5.2,6.2,7.3,7.5,8.6,9.6,8.7,7.4];
>
> By running:
> plot, x1, y1
> oplot, x2, y2
> we can clearly see that there are four intersections, but it is not
> clear what are the x,y coordinates of these points.
>
> Is there an easy way to do it? Thank you very much.
>

Hi,

You might want to check out Paul Bourke's great online tidbits about
geometry.

http://local.wasp.uwa.edu.au/~pbourke/geometry/

I have been chipping away at coding some of the algorithms he
describes into IDL, but have been easily sidetracked. You're welcome
to use what I have (mostly documented) as a starting point. My
implementations come with zero warranty...

www.tidewater.net/~pemaquid/pb.zip

Cheers,
Ben
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Confusion about the filter in time and frequency domain
Next Topic: Re: Confusion about the filter in time and frequency domain

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

Current Time: Thu Oct 09 23:08:01 PDT 2025

Total time taken to generate the page: 1.76276 seconds