- Yet another try in the endless quest for perfect collision detection.
[supertux.git] / src / math / vector.hpp
index 38c1204..6882cf1 100644 (file)
@@ -82,6 +82,13 @@ public:
     return *this;
   }
 
+  const Vector& operator -=(const Vector& other)
+  {
+    x -= other.x;
+    y -= other.y;
+    return *this;
+  }
+
   const Vector& operator *=(float val)
   {
     x *= val;