The affine transformation functions for
Polygon
differ from thePath
versions only in thatcenter
is transformed as well. See Path Reference; Affine Transformations.Please note, that the classes currently derived from
Polygon
, namelyReg_Polygon
andRectangle
, currently inherit these functions fromPolygon
. The problem with this is, that they have data members, which are not recalculated when aReg_Polygon
orRectangle
is 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_Polygon
have caused it to become irregular and/or non-polygonal. Similarly, the functionRectangle::is_rectangular()
must be added, to test whether operations on aRectangle
has caused it to become non-rectangular. See Regular Polygon Reference; Data Members, and Rectangle Reference; Data Members.