ENH: pointEdgePoint: check for equal

This commit is contained in:
mattijs
2013-01-11 15:56:20 +00:00
parent f85302c546
commit 56c0d7ba50

View File

@ -312,7 +312,7 @@ inline bool Foam::pointEdgePoint::equal
inline bool Foam::pointEdgePoint::operator==(const Foam::pointEdgePoint& rhs) inline bool Foam::pointEdgePoint::operator==(const Foam::pointEdgePoint& rhs)
const const
{ {
return origin() == rhs.origin(); return (origin() == rhs.origin()) && (distSqr() == rhs.distSqr());
} }