Add a method to calculate polar coordinate of vector