calculate the polar coordinate using the actual r

- this fixed the noisy behaviour of the conversion

Signed-off-by: Nicholas Tan Jerome <nicholas.jerome@kit.edu>