Path: news.mathworks.com!not-for-mail
From: "someone" <someone@somewhere.net>
Newsgroups: comp.soft-sys.matlab
Subject: Re: intersection of a line with a closed curve
Date: Tue, 11 Aug 2009 19:13:18 +0000 (UTC)
Organization: Mitre Corp
Lines: 14
Message-ID: <h5sfse$6qr$1@fred.mathworks.com>
References: <h5sd2e$q9b$1@fred.mathworks.com>
Reply-To: "someone" <someone@somewhere.net>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1250017998 7003 172.30.248.35 (11 Aug 2009 19:13:18 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 11 Aug 2009 19:13:18 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2318
Xref: news.mathworks.com comp.soft-sys.matlab:562494

"Vic Band" <vic_air_band@yahoo.com> wrote in message <h5sd2e$q9b$1@fred.mathworks.com>...
> I have a closed curve in 2-dimensions, defined by C = [x y] (not generated from a function, but from data) and a vector with pt1 (the origin, also the centre of the closed curve) and pt2. How can I find the intersection between the vector and the curve? 
> 
> Thanks, 
> 
> Vic 

Take a look at Fast and Robust Curve Intersections:

http://www.mathworks.com/matlabcentral/fileexchange/11837

from the MATLAB FEX.

(There are lots of other ones there too.  Do a search on intersect.)