Improved polar2cartesian performance.