Converts coordinates points to polar coordinates