these functions are not needed |
Yes and no. Let say that you have a simple rectangle: { {0,0}, {0,1}, {2,1}, {2,0} }
You can now move the upper left corner from {0,1} to {0,3}. Problem is that you no longer have a
rectangle, and 'top' and 'area' are wrong too.
If you proceed with:
SetTop(3);
SetUpperRight( Point( 2, 3 ) );
you will again have a proper rectangle: { {0,0}, {0,3}, {2,3}, {2,0} }
Being able to change a Rectangle is a good thing and as such is
needed.
Incomplete, inconsistent changes break promises and as such do things in very bad way.