Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!41g2000hsc.googlegroups.com!not-for-mail
From: Steve <srjm72499@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: distance between point and line segment
Date: Mon, 18 Feb 2008 21:39:35 -0800 (PST)
Organization: http://groups.google.com
Lines: 5
Message-ID: <4a2f4ac1-c21e-4ebf-8530-352f15098a47@41g2000hsc.googlegroups.com>
NNTP-Posting-Host: 66.67.125.28
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1203399575 23935 127.0.0.1 (19 Feb 2008 05:39:35 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 19 Feb 2008 05:39:35 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: 41g2000hsc.googlegroups.com; posting-host=66.67.125.28; 
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; 
Xref: news.mathworks.com comp.soft-sys.matlab:452281


Is there a simple way to find the distance between a line segment and
a point?  I'm looking for the 2D case specifically, but the more
general 3D case would also be nice to know...
Thanks.
-Steve