Lines Matching defs:deg
119 GLfloat TruncateDeg( GLfloat deg )
121 if ( deg >= 360.f )
122 return (deg - 360.f);
124 return deg;
131 double deg2rad( double deg )
133 return deg / 360 * (2 * M_PI);
139 double sin_deg( double deg )
141 return sin( deg2rad( deg ) );
147 double cos_deg( double deg )
149 return cos( deg2rad( deg ) );
389 GLfloat deg;
425 deg = (ball_y + BOUNCE_HEIGHT/2) * 90 / BOUNCE_HEIGHT;
426 if ( deg > 80 ) deg = 80;
427 if ( deg < 10 ) deg = 10;
429 ball_y_inc = sign * 4.f * (float) sin_deg( deg );