Fixing bug in angle projection

parent 342f2263
......@@ -256,7 +256,7 @@ float anglef_proj_NPI_PI( const float alpha )
float anglef_proj_NPIH_PIH( const float alpha )
{
float alpha_temp = fmodf( alpha, PI_F );
float alpha_temp = fmodf( alpha + PI_F / 2.0f, PI_F ) - PI_F / 2.0f;
if( alpha_temp < -PI_F/2.0f )
alpha_temp += PI_F;
return alpha_temp;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment