wrap angle?

BlitzMax Forums/BlitzMax Beginners Area/wrap angle?

Thanks Lars - don't think that quite works for negative angles. For those you would need to subtract the result from 360 (I think).

so something:

wrap = angle mod 360
if wrap < 0 then wrap = 360 - wrap

I'll just use a function for this I guess - just wondered if it was already there, hidden away somewhere.