From 99afe015fd285f663c73c6ddbc7b84287818cecc Mon Sep 17 00:00:00 2001 From: nicopietroni Date: Wed, 4 Apr 2007 23:22:29 +0000 Subject: [PATCH] setted to const the parameter passed to function Projection --- vcg/space/plane3.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vcg/space/plane3.h b/vcg/space/plane3.h index b3a789f5..83a07bf7 100644 --- a/vcg/space/plane3.h +++ b/vcg/space/plane3.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.8 2005/09/26 19:49:30 m_di_benedetto +Method Set(off, dir) now correctly normalizes direction and offset if template parameter NORM is set. + Revision 1.7 2005/03/18 16:34:42 fiorin minor changes to comply gcc compiler @@ -134,7 +137,7 @@ public: } ///Project a point on the plane - PointType Projection(PointType &p) const { + PointType Projection(const PointType &p) const { ScalarType k = p * _dir - _offset; return p - _dir * k; }