Move cartesianToPolar() and polarToCartesian() out of getArcFromPath() in order for all functions to be arranged in a linear structure.