#ifndef _rectangle_
#define _rectangle_

#include<iostream>

#include"shape.h"


class Rectangle: public Shape {

protected:
  long _ur_x;
  long _ur_y;

public:
  Rectangle(long ll_x,long ll_y,long  ur_x,long ur_y):
    Shape(ll_x,ll_y),_ur_x(ur_x-ll_x),_ur_y(ur_y-ll_y) {};
  
  virtual void rotate(double angle,long c_x,long c_y) ;
  
  virtual void draw() {
    std::cerr<<"rectangle : "<<_x<<" "<<_y<<" : ";
    std::cerr<<_ur_x+_x<<" "<<_ur_y+_y<<std::endl;

  }
};



#endif