Skip to content

Instantly share code, notes, and snippets.

@uhziel
Created September 6, 2012 08:23
Show Gist options
  • Save uhziel/3652983 to your computer and use it in GitHub Desktop.
Save uhziel/3652983 to your computer and use it in GitHub Desktop.
将任意角度转化到 [0度,360度)。
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