Removed intro-playing part of world script
[supertux.git] / src / math / rect.hpp
index 2a50dd9..2c30258 100644 (file)
@@ -83,7 +83,7 @@ public:
   {
     set_width(width);
     set_height(height);
-  }    
+  }
   Vector get_size()
   {
     return Vector(get_width(), get_height());
@@ -95,11 +95,11 @@ public:
     p2 += v;
   }
 
-  bool inside(const Vector& v) const
+  bool contains(const Vector& v) const
   {
     return v.x >= p1.x && v.y >= p1.y && v.x < p2.x && v.y < p2.y;
   }
-  bool inside(const Rect& other) const
+  bool contains(const Rect& other) const
   {
     if(p1.x >= other.p2.x || other.p1.x >= p2.x)
       return false;
@@ -108,7 +108,7 @@ public:
 
     return true;
   }
-   
+
   // leave these 2 public to safe the headaches of set/get functions for such
   // simple things :)
 
@@ -119,4 +119,3 @@ public:
 };
 
 #endif
-