- #1
Philosophaie
- 462
- 0
I need a formula to put an angle between -180 and 180 and recycle if not in the range.
I can do it between 0 and 360:
angle = deg - 360 * floor(deg / 360)
just not between -180 and 180
Oh and what is the name of this function?
I can do it between 0 and 360:
angle = deg - 360 * floor(deg / 360)
just not between -180 and 180
Oh and what is the name of this function?