Skip to content

Commit

Permalink
Refs #11006. Making comparison in V3D more simple
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Wedel committed Mar 1, 2015
1 parent 17398b9 commit b84844a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Code/Mantid/Framework/Kernel/src/V3D.cpp
Expand Up @@ -265,10 +265,8 @@ V3D &V3D::operator/=(const double D) {
*/
bool V3D::operator==(const V3D &v) const {
using namespace std;
return (fabs(x - v.x) > Tolerance || fabs(y - v.y) > Tolerance ||
fabs(z - v.z) > Tolerance)
? false
: true;
return !(fabs(x - v.x) > Tolerance || fabs(y - v.y) > Tolerance ||
fabs(z - v.z) > Tolerance);
}

/** Not equals operator with tolerance factor.
Expand Down

0 comments on commit b84844a

Please sign in to comment.