wrap angle?

BlitzMax Forums/BlitzMax Beginners Area/wrap angle?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Here's my little wrapvalue function. Seems to work well enough with negative numbers.

Function F_WrapValue#( v# )
v# = v# / 360.0
Return ( v# - Floor# ( v# ) ) * 360.0
End Function