Fix NormalizeAngleNeg to be (-360, 0]

This commit is contained in:
Roberto Fernandez Bautista 2020-09-08 19:46:20 +01:00 committed by Seth Hillbrand
parent 6a82f23981
commit b1343ca281
1 changed files with 2 additions and 2 deletions

View File

@ -254,9 +254,9 @@ template <class T> inline T NormalizeAngle360Min( T Angle )
template <class T>
inline T NormalizeAngleNeg( T Angle )
{
while( Angle < -3600 )
while( Angle <= -3600 )
Angle += 3600;
while( Angle >= 0 )
while( Angle > 0 )
Angle -= 3600;
return Angle;
}