pingus-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pingus-CVS] r3913 - trunk/pingus/src/math


From: grumbel at BerliOS
Subject: [Pingus-CVS] r3913 - trunk/pingus/src/math
Date: Sun, 27 Jul 2008 16:16:02 +0200

Author: grumbel
Date: 2008-07-27 16:16:02 +0200 (Sun, 27 Jul 2008)
New Revision: 3913

Modified:
   trunk/pingus/src/math/vector2i.hpp
Log:
Added inversion operator

Modified: trunk/pingus/src/math/vector2i.hpp
===================================================================
--- trunk/pingus/src/math/vector2i.hpp  2008-07-27 14:02:05 UTC (rev 3912)
+++ trunk/pingus/src/math/vector2i.hpp  2008-07-27 14:16:02 UTC (rev 3913)
@@ -42,6 +42,11 @@
     return Vector2i(x + add.x, y + add.y);
   }
 
+  Vector2i operator- () const
+  {
+    return Vector2i(-x, -y);
+  }
+
   Vector2i operator- (const Vector2i& sub) const
   {
     return Vector2i(x - sub.x, y - sub.y);





reply via email to

[Prev in Thread] Current Thread [Next in Thread]