+// Vector - vector, self assigned\r
+\r
+Vector& Vector::operator-=(Vector const v)\r
+{\r
+ x -= v.x, y -= v.y, z -= v.z;\r
+\r
+ return *this;\r
+}\r
+\r
+// Vector - constant, self assigned\r
+\r
+Vector& Vector::operator-=(double const v)\r
+{\r
+ x -= v, y -= v, z -= v;\r
+\r
+ 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