Added a != operator.
authorRicardo Cruz <rick2@aeiou.pt>
Wed, 6 Oct 2004 21:36:51 +0000 (21:36 +0000)
committerRicardo Cruz <rick2@aeiou.pt>
Wed, 6 Oct 2004 21:36:51 +0000 (21:36 +0000)
SVN-Revision: 1983

lib/math/vector.h

index faedaff..dac4c95 100644 (file)
@@ -48,6 +48,11 @@ namespace SuperTux
           return x == other.x && y == other.y;
         }
 
+      bool operator !=(const Vector& other) const
+        {
+          return !(x == other.x && y == other.y);
+        }
+
       const Vector& operator=(const Vector& other)
       {
         x = other.x;