declare a point structure with int x, int y as its members (add int z if three d).
use object of this structure to represent a point in your cartesian system
struct 3dPoint
{
int x,
int y;
int z;
3dPoint() : x(0), y(0), z(0) {};
};
struct 3dRectangle
{
3DPoint LT; //left top point
3DPoint RB; //right bottom point
};