The affine transformation functions for
Polygondiffer from thePathversions only in thatcenteris transformed as well. See Path Reference; Affine Transformations.Please note, that the classes currently derived from
Polygon, namelyReg_PolygonandRectangle, currently inherit these functions fromPolygon. The problem with this is, that they have data members, which are not recalculated when aReg_PolygonorRectangleis transformed. I plan to do something about this soon! It will also be necessary to add the functionReg_Polygon::is_reg_polygonal(), in order to test whether operations on aReg_Polygonhave caused it to become irregular and/or non-polygonal. Similarly, the functionRectangle::is_rectangular()must be added, to test whether operations on aRectanglehas caused it to become non-rectangular. See Regular Polygon Reference; Data Members, and Rectangle Reference; Data Members.