Well, I now realize that this actually uses Lua's math library stuff, which would mean TORAD(), and for some reason LOCAL_PI....

Since the code was like this originally, it can be ignored for the purpose of this PR.