convert

Rect to Polar

intermediate

r = sqrt(x^2+y^2), theta = atan2(y,x)

Formula

Coordinate conversion