pingus-cvs
[Top][All Lists]
Advanced

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

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


From: grumbel at BerliOS
Subject: [Pingus-CVS] r3816 - trunk/pingus/src/math
Date: Sun, 13 Jul 2008 15:31:44 +0200

Author: grumbel
Date: 2008-07-13 15:31:44 +0200 (Sun, 13 Jul 2008)
New Revision: 3816

Modified:
   trunk/pingus/src/math/size.hpp
Log:
Added get_area()

Modified: trunk/pingus/src/math/size.hpp
===================================================================
--- trunk/pingus/src/math/size.hpp      2008-07-13 13:25:03 UTC (rev 3815)
+++ trunk/pingus/src/math/size.hpp      2008-07-13 13:31:44 UTC (rev 3816)
@@ -95,6 +95,8 @@
        //: Size != Size operator (deep compare).
        bool operator!=(const Size &s) const
        { return (width != s.width) || (height != s.height); }
+  
+       int get_area() const { return width * height; }
 };
 
 //: 2D (width,height) floating point size structure.





reply via email to

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