From 0e3d2abcfdea01ded16f5ab076662ed728cbace6 Mon Sep 17 00:00:00 2001 From: nicopietroni Date: Fri, 22 Jun 2012 14:23:33 +0000 Subject: [PATCH] corrected return value of 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 dff3f4db..1fc36cea 100644 --- a/vcg/space/ray2.h +++ b/vcg/space/ray2.h @@ -186,7 +186,7 @@ typedef Ray2 Ray2dN; /// returns closest point template -Point3 ClosestPoint( Ray2 r, const Point3 & p) +Point2 ClosestPoint( Ray2 r, const Point3 & p) { ScalarType t = r.Projection(p); if (t<0) return r.Origin();