How to rotate a cylindrical distance field?

Ok, I have already managed to rotate and translate the distance field of cylindrical.

I got a part of the code in this post:

And the other part of the code I got in this other post:

However and although my main problem is already solved. I consider that the code is not yet complete.

That is, the following is missing:
-Choose the radius of the cylinder
-Modify the scale of the cylinder.

If someone is good at image vector math maybe I can post here how to do it.
Because I’m very very newbie… I’ve been looking for the solution to this problem all day. :woozy_face:

Thank you very much!!