00 /* 01 * rectangle.h 02 * 03 * Author: Kurt Nørmark / Simonas Saltenis 04 */ 05 06 #ifndef RECTANGLE_H_ 07 #define RECTANGLE_H_ 08 09 #include "point1.h" 10 11 class Rectangle 12 { 13 private: 14 Point upper_left, lower_right; 15 16 public: 17 Rectangle(Point p1, Point p2) : upper_left{p1}, lower_right{p2} {}; 18 Rectangle(double x1, double y1, double x2, double y2) : 19 Rectangle{Point{x1, y1}, Point{x2, y2}} {}; 20 Rectangle() : Rectangle{-1, 1, 1,-1} {}; 21 22 // other methods 23 }; 24 25 #endif /* RECTANGLE_H_ */ 26