diff --git a/Code/Mantid/Framework/Kernel/inc/MantidKernel/V3D.h b/Code/Mantid/Framework/Kernel/inc/MantidKernel/V3D.h index 79672ccc7c6304725a494d53d2df027613470cb0..1a2b904e0754913250996c20875cd2397898aaf8 100644 --- a/Code/Mantid/Framework/Kernel/inc/MantidKernel/V3D.h +++ b/Code/Mantid/Framework/Kernel/inc/MantidKernel/V3D.h @@ -80,6 +80,7 @@ public: bool operator==(const V3D &) const; bool operator!=(const V3D &) const; bool operator<(const V3D &) const; + bool operator>(const V3D &rhs) const; // Access // Setting x, y and z values diff --git a/Code/Mantid/Framework/Kernel/src/V3D.cpp b/Code/Mantid/Framework/Kernel/src/V3D.cpp index e103a13ed4653313bd7bb8c77812e8aec40b1546..89d25b59fe3798045dcc528ec40873a218fb4be3 100644 --- a/Code/Mantid/Framework/Kernel/src/V3D.cpp +++ b/Code/Mantid/Framework/Kernel/src/V3D.cpp @@ -289,6 +289,12 @@ bool V3D::operator<(const V3D &V) const { return z < V.z; } +/// Comparison operator greater than. +bool V3D::operator>(const V3D &rhs) const +{ + return rhs < *this; +} + /** Sets the vector position from a triplet of doubles x,y,z @param xx :: The X coordinate