 There is no solution in terms of elementary functions in more complicated cases.For plane situations analytic functions may be used to map different geometries to each other.See also Schwarz–Christoffel mapping.