If you are doing every 30°, why not simply enable Polar Tracking?
Certainly yes Master_Shake!
Could it be that I was wrong to enter this forum?
The problem with Polar Tracking is that it allows you to create a vector between the angles that I intend to limit. I also did not want to change variables in the user environment. Then I saw in that case a challenge for me.
I'm sorry I was not clear with my intentions, my friend.
I figured the fact that I got here with an attempt at code, showed that my only intention was to train my skills as a programmer. (Not that I'm a programmer)
Proof of this was that I thanked him for the knowledge Ron gave me and not for his code.
Thank you very much for sharing your knowledge Ron.
And just below I emphasized that I needed to study a little more ...
I've come to the conclusion that I need to study hard to get to their level.
I often write things that have no use for me at that moment, just to exercise.
When I find it difficult to find the solution I search insanely before asking for help, unlike those who arrive here in the Swamp empty-handed demanding a solution to their problems.
Thank you for expanding my vision.
Best regards, Luís Augusto.