velocity vector transformation from cartesian to polar

I would like to transform a velocity on the cylinder in a way to get radial and tangential velocity components. To do that, I would need a theta value as shown on the picture, but ranging from 0 to 2pi

I am not that good with programmable filter and cannot figure it out for my multi-block dataset: