* small fix
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19389 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
4d83ef04a2
commit
ba688f3640
@ -70,16 +70,13 @@ void Angle::Normalize(void)
|
||||
// if the value of the angle is >=360 or <0, make it so that it is
|
||||
// within those bounds
|
||||
|
||||
if(fAngleValue>359)
|
||||
{
|
||||
while(fAngleValue>359)
|
||||
fAngleValue-=360;
|
||||
if (fAngleValue > 360) {
|
||||
while (fAngleValue > 360)
|
||||
fAngleValue -= 360;
|
||||
return;
|
||||
}
|
||||
if(fAngleValue<0)
|
||||
{
|
||||
while(fAngleValue<0)
|
||||
fAngleValue+=360;
|
||||
} else if (fAngleValue < 0) {
|
||||
while (fAngleValue < 0)
|
||||
fAngleValue += 360;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user