Converting between cartesian and polar coordinates is a simple case of employing some trigonometry and Pythagoras' theorem.