Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!a22g2000hsc.googlegroups.com!not-for-mail
From: ImageAnalyst <imageanalyst@mailinator.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: distance between point and line segment
Date: Sat, 29 Mar 2008 21:11:58 -0700 (PDT)
Organization: http://groups.google.com
Lines: 18
Message-ID: <d122bed7-41d5-446a-8b0a-e786bdb938fb@a22g2000hsc.googlegroups.com>
References: <4a2f4ac1-c21e-4ebf-8530-352f15098a47@41g2000hsc.googlegroups.com>
NNTP-Posting-Host: 75.186.67.199
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1206850319 20886 127.0.0.1 (30 Mar 2008 04:11:59 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Sun, 30 Mar 2008 04:11:59 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: a22g2000hsc.googlegroups.com; posting-host=75.186.67.199; 
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 
Xref: news.mathworks.com comp.soft-sys.matlab:459898


On Feb 19, 1:39=A0am, Steve <srjm72...@gmail.com> wrote:
> Is there a simple way to find the distance between a line segment and
> a point? =A0I'm looking for the 2D case specifically, but the more
> general 3D case would also be nice to know...
> Thanks.
> -Steve

Steve:
Yep, the 3 D case is here:
http://mathworld.wolfram.com/Point-LineDistance3-Dimensional.html
(See equation 4.)

The 2D case is here:
http://mathworld.wolfram.com/Point-LineDistance2-Dimensional.html
(See especially equation 11.)

Glad to help,
ImageAnalyst