Polar coordinates to rectangular coordinates conversion