Lines Matching refs:G_PI
256 tmp = G_PI * sin (cycle) / 32 + 3 * G_PI / 2; in pretty_move()
262 cycle *= 2.0f * G_PI; in pretty_move()
264 cycle *= -1.0f * G_PI; in pretty_move()
265 tmp = cycle - (G_PI * 2.0) * floor (cycle / (G_PI * 2.0)); in pretty_move()
268 if (fabs (tmp - fx_data->rot) > fabs (tmp - (fx_data->rot + 2.0 * G_PI))) { in pretty_move()
269 fx_data->rot = (tmp + 15.0f * (fx_data->rot + 2 * G_PI)) / 16.0f; in pretty_move()
270 if (fx_data->rot > 2.0 * G_PI) in pretty_move()
271 fx_data->rot -= 2.0 * G_PI; in pretty_move()
274 fabs (tmp - (fx_data->rot - 2.0 * G_PI))) { in pretty_move()
275 fx_data->rot = (tmp + 15.0f * (fx_data->rot - 2.0 * G_PI)) / 16.0f; in pretty_move()
277 fx_data->rot += 2.0 * G_PI; in pretty_move()