diff --git a/vcg/space/deprecated_point2.h b/vcg/space/deprecated_point2.h index eab330b5..47dfd9fd 100644 --- a/vcg/space/deprecated_point2.h +++ b/vcg/space/deprecated_point2.h @@ -140,7 +140,8 @@ public: { return ( _v[0]*p._v[0] + _v[1]*p._v[1] ); } - /// cross product + inline ScalarType dot( const Point2 & p ) const { return (*this) * p; } + /// cross product inline ScalarType operator ^ ( Point2 const & p ) const { return _v[0]*p._v[1] - _v[1]*p._v[0];