added a missing dot() product for the conservative people still using deprecated stuff...

This commit is contained in:
Paolo Cignoni 2008-10-30 07:39:33 +00:00
parent 60eb470c6c
commit 6627c21d43
1 changed files with 2 additions and 1 deletions

View File

@ -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];