Rectangle class

Dependents:   FollowMeBot FollowMeBot FollowMeBot3 FollowMeBot

Fork of Rectangle by Sensovery Company

Revision:
0:19fca77774b6
Child:
1:d9c0709ba2ce
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Rectangle.h	Tue May 03 13:32:04 2011 +0000
@@ -0,0 +1,26 @@
+#include "mbed.h"
+
+class Rectangle {
+protected :
+    int Origin[1];
+    int End[1];
+    int * back;
+
+
+public :
+    Rectangle(int x,int y, int x2, int y2, int color, int * back);
+
+    bool is_touch(int x_touch, int y_touch);
+
+    bool deplace(int x, int y);
+    
+    int getX1();
+    
+    int getX2();
+    
+    int getY1();
+    
+    int getY2();
+    
+    int * getBack();
+};
\ No newline at end of file