Path: news.mathworks.com!not-for-mail
From: "Chukwuemeka Igwe" <chukigwe@yahoo.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: distance between point and line segment
Date: Mon, 31 Mar 2008 21:18:03 +0000 (UTC)
Organization: AGCO
Lines: 40
Message-ID: <fsrkeb$os2$1@fred.mathworks.com>
References: <4a2f4ac1-c21e-4ebf-8530-352f15098a47@41g2000hsc.googlegroups.com> <d122bed7-41d5-446a-8b0a-e786bdb938fb@a22g2000hsc.googlegroups.com>
Reply-To: "Chukwuemeka Igwe" <chukigwe@yahoo.com>
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 1206998283 25474 172.30.248.35 (31 Mar 2008 21:18:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 31 Mar 2008 21:18:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1073303
Xref: news.mathworks.com comp.soft-sys.matlab:460191


Yes thanks for your replies.

However if I  use the cross product and assume that the z 
axis  have zero components  I actually get some reuslts 
which are more than an order of magnitude bigger thant the 
case when I use the determinant to solve for two 
dimensions.
Please what is happening to cause such a difference in 
results.

Thanks 

Chuk

ImageAnalyst <imageanalyst@mailinator.com> wrote in 
message <d122bed7-41d5-446a-8b0a-
e786bdb938fb@a22g2000hsc.googlegroups.com>...
> 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