affine transformation for polygons