From 061c49ab5eab4f4ff7a6b38a1e1705e3328102b1 Mon Sep 17 00:00:00 2001 From: nicopietroni Date: Wed, 23 Mar 2005 17:32:01 +0000 Subject: [PATCH] corrected 1 bug in distance function (use of templated coords type) --- vcg/space/line3.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vcg/space/line3.h b/vcg/space/line3.h index 4d5fe74f..e1d8a1c5 100644 --- a/vcg/space/line3.h +++ b/vcg/space/line3.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.8 2004/05/14 03:14:04 ponchio +Added Distance + Revision 1.7 2004/05/10 10:58:35 ganovelli name of the constructor changed from LineType to Line3 @@ -206,7 +209,7 @@ Point3 ClosestPoint( Line3 l, const Point3 ScalarType Distance(const Line3 &l, const Point3 &p) { - Point3f o = l.ClosestPoint(p); + Point3 o = l.ClosestPoint(p); return (o - p).Norm(); }