*
* Negative values are allowed.
*/
-struct Box {
+class Box {
+public:
int x1;
int x2;
int y1;
int y2;
+ /// Zero-initialise the member variables.
+ Box();
/// Initialise the member variables.
Box(int x1_, int x2_, int y1_, int y2_);
* the box. Check is exclusive (point on a border
* returns false).
*/
- bool contained(int x, int y);
+ bool contains(int x, int y);
};