Conversion of Cartesian Coordinates to Polar Coordinates