translatePolygon function added

New function "translatePolygon" added