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

@ -310,14 +310,14 @@ inline bool Foam::pointEdgePoint::equal
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
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());
} }
inline bool Foam::pointEdgePoint::operator!=(const Foam::pointEdgePoint& rhs) inline bool Foam::pointEdgePoint::operator!=(const Foam::pointEdgePoint& rhs)
const const
{ {
return !(*this == rhs); return !(*this == rhs);
} }