]> Shamusworld >> Repos - architektonas/blobdiff - src/vector.cpp
Fix for missing ampersand in QApplication.
[architektonas] / src / vector.cpp
index 53cdbee39ceaba9938ab3b0c82375d640f712833..e992bbffd53aa5496bffde85c0ff6b543f4891fd 100644 (file)
@@ -151,6 +151,17 @@ Vector& Vector::operator-=(double const v)
        return *this;\r
 }\r
 \r
+// Check for equality\r
+bool Vector::operator==(Vector const v)\r
+{\r
+       return (x == v.x && y == v.y && z == v.z ? true : false);\r
+}\r
+\r
+// Check for inequality\r
+bool Vector::operator!=(Vector const v)\r
+{\r
+       return (x != v.x || y != v.y || z != v.z ? true : false);\r
+}\r
 \r
 Vector Vector::Unit(void)\r
 {\r