Rectangle class

Dependents:   FollowMeBot FollowMeBot FollowMeBot3 FollowMeBot

Fork of Rectangle by Sensovery Company

Rectangle.h

Committer:
dhamilton31
Date:
2013-11-18
Revision:
1:d9c0709ba2ce
Parent:
0:19fca77774b6

File content as of revision 1:d9c0709ba2ce:

#include "mbed.h"

class Rectangle {
protected :
    int x1, x2, y1, y2;


public :
    Rectangle(int x,int y, int x2, int y2);

    bool is_touch(int x_touch, int y_touch);
    
    int getX1();
    
    int getX2();
    
    int getY1();
    
    int getY2();
    
    int getCenterX();
    
    int getCenterY();
  
};