added transform for polygon to Transform

renamed transform functions in Transform to just be overloads of a
single function