From 565308c80d340dfc74d11742880171f48f49b46c Mon Sep 17 00:00:00 2001 From: nicopietroni Date: Fri, 1 Aug 2014 00:14:25 +0000 Subject: [PATCH] corrected one bug in closest point --- vcg/space/ray2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vcg/space/ray2.h b/vcg/space/ray2.h index 1fc36cea..815cae75 100644 --- a/vcg/space/ray2.h +++ b/vcg/space/ray2.h @@ -186,7 +186,7 @@ typedef Ray2 Ray2dN; /// returns closest point template -Point2 ClosestPoint( Ray2 r, const Point3 & p) +Point2 ClosestPoint( Ray2 r, const Point2 & p) { ScalarType t = r.Projection(p); if (t<0) return r.Origin();