Hi, I'm having trouble with this square class. I want to write a C++ class Square whose objects are squares having the sides parallel to the coordinate
axes xOy in the plane.
(a) The class must have several constructors, including a copy constructor.
(b) The class must contain member functions computing the area and the perimeter of a square.
(c) The class must contain member functions checking
• whether the square is external to another;
• whether the square contains another square;
• whether the square is contained into another square;
• whether the square is tangent externally to another square (that is, whether their borders
are in contact but, except those border points, they are external to each other);
• whether the square is tangent internally to another square (that is, they have points on the
borders in common but, except those border points, one square is contained into the other
one);
• whether the border of the square intersects the border of another square.
My main problem is the member functions. Any tips or help is appreciated.