Rectangle class

Dependents:   FollowMeBot FollowMeBot FollowMeBot3 FollowMeBot

Fork of Rectangle by Sensovery Company

Revision:
1:d9c0709ba2ce
Parent:
0:19fca77774b6
--- a/Rectangle.h	Tue May 03 13:32:04 2011 +0000
+++ b/Rectangle.h	Mon Nov 18 21:09:00 2013 +0000
@@ -2,17 +2,13 @@
 
 class Rectangle {
 protected :
-    int Origin[1];
-    int End[1];
-    int * back;
+    int x1, x2, y1, y2;
 
 
 public :
-    Rectangle(int x,int y, int x2, int y2, int color, int * back);
+    Rectangle(int x,int y, int x2, int y2);
 
     bool is_touch(int x_touch, int y_touch);
-
-    bool deplace(int x, int y);
     
     int getX1();
     
@@ -22,5 +18,8 @@
     
     int getY2();
     
-    int * getBack();
+    int getCenterX();
+    
+    int getCenterY();
+  
 };
\ No newline at end of file