Simply 'rad2deg(val)' is the method from input.js
These are used for math expressions in many UI input fields.
I don't know if the rule aplies to QCAM.
Andrew has advised not to use these in scripting.
He advised to use RMath.rad2deg(val).
But one can find the use of both in the QCAD project scripts.
input.js implements two functions called 'rad2deg(val)' and 'deg2rad(val)'
library.js also implements two functions called 'rad2deg(val)' and 'deg2rad(val)'
Finally Rmath.ccp has similar entries addressed with RMath.
The only differences are how the factor is aplied: 2*PI for 360 or PI for 180.
I would preffer the short route.
RMath.deg2rad has 26 hits in 19 files of 1014
Except for input.js, library.js and the simple scripts only InvoluteSpur.js and Counter.js use the method without the RMath.
The first is of hands of Iain Hibbert and the latter is by Robert S.
Most other scripts are from the hand of Andrew.
I would stick to RMath.rad2deg(val) & RMath.deg2rad(val) even with the '2*PI for 360'.