Skip to content
Snippets Groups Projects
Commit 56c0d7ba authored by mattijs's avatar mattijs
Browse files

ENH: pointEdgePoint: check for equal

parent f85302c5
Branches
Tags
No related merge requests found
......@@ -310,14 +310,14 @@ inline bool Foam::pointEdgePoint::equal
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
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)
const
const
{
return !(*this == rhs);
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment