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