From 6627c21d43f4b53e5f2af91839ba1977e6c2fe98 Mon Sep 17 00:00:00 2001 From: cignoni Date: Thu, 30 Oct 2008 07:39:33 +0000 Subject: [PATCH] added a missing dot() product for the conservative people still using deprecated stuff... --- vcg/space/deprecated_point2.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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];