diff --git a/vcg/space/line3.h b/vcg/space/line3.h index 5d56daf6..4d5fe74f 100644 --- a/vcg/space/line3.h +++ b/vcg/space/line3.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.7 2004/05/10 10:58:35 ganovelli +name of the constructor changed from LineType to Line3 + Revision 1.6 2004/03/11 11:47:20 tarini minor updates, corrections, added documentations, etc. @@ -200,6 +203,13 @@ Point3 ClosestPoint( Line3 l, const Point3 +ScalarType Distance(const Line3 &l, + const Point3 &p) { + Point3f o = l.ClosestPoint(p); + return (o - p).Norm(); +} + /*@}*/ } // end namespace