Will TMinuit2 consider the periodic boundary during fitting?

Dear experts

I have 4 parameters to discribe a 3D line (rho, phi, alpha, theta) where rho and phi is the point that closest to z axis on the XY plane, alpha is angle between that point and z axis.
Since there are three angles to be fitted, I wonder if TMinuit2 will consider the periodic boundary condition? Like after the step chosen phi = 0.0001, next step chosen phi = 3.1414 (0, pi)

Hi,

I am not sure the minimizer can automatically recognise that a parameter is an angle, but adding @jonas in the loop.

Best,
D

…Any help?