pi_to_pi
κ°λ κ³μ°ν λ νμ
while(angle >= M_PI)
{
angle -= 2.*M_PI;
while(angle < -M_PI)
angle += 2.*M_PI;
return angle;
}
κ°λ κ³μ°ν λ νμ
while(angle >= M_PI)
{
angle -= 2.*M_PI;
while(angle < -M_PI)
angle += 2.*M_PI;
return angle;
}
Leave a comment