Application of basic 2D and 3D transformations like scaling, translation and rotation on polygons