diff --git a/vcg/space/point2.h b/vcg/space/point2.h index c72cfac1..bbbae31f 100644 --- a/vcg/space/point2.h +++ b/vcg/space/point2.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.6 2005/03/18 16:34:42 fiorin +minor changes to comply gcc compiler + Revision 1.5 2004/05/10 13:22:25 cignoni small syntax error Math -> math in Angle @@ -234,7 +237,7 @@ public: return Norm2(*this-p); } /// returns the angle with X axis (radiants, in [-PI, +PI] ) - inline Point2 &Angle(){ + inline ScalarType Angle() const { return math::Atan2(_v[1],_v[0]); } /// transform the point in cartesian coords into polar coords @@ -298,7 +301,7 @@ inline T Angle( Point2 const & p0, Point2 const & p1 ) template inline Point2 operator - ( Point2 const & p ){ - return Point2( -p._v[0], -p._v[1] ); + return Point2( -p[0], -p[1] ); } template