added a missing dot() product for the conservative people still using deprecated stuff...
This commit is contained in:
parent
60eb470c6c
commit
6627c21d43
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue