Created
September 6, 2012 08:23
-
-
Save uhziel/3652983 to your computer and use it in GitHub Desktop.
将任意角度转化到 [0度,360度)。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
float AngleToValid( float fAngle ) | |
{ | |
return fAngle - (int)floorf(fAngle / 360.0f) * 360; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment