mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: pointEdgePoint: check for equal
This commit is contained in:
@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user