src/gfxlib2/gfx_draw.c
/* Returns cosine of angle in degrees - quickly return exact values for 0/90/180/270 */
Returns cosine of angle in degrees - quickly return exact values for 0/90/180/270
Returns cosine of angle in degrees - quickly return exact values for 0 / 90 / 180 / 270
static float dcos(int angle)
{
	switch( angle )
	{
	case 0:  	return 1.0;
	case 90: 	return 0.0;
	case 180:	return -1.0;
	case 270:	return 0.0;
	default: 	return cos((float)angle * PI / 180.0);
	}
}
static float dcos ( int angle ) { switch ( angle ) { case 0 : return 1.0 ; case 90 : return 0.0 ; case 180 : return -1.0 ; case 270 : return 0.0 ; default : return cos ( ( float ) angle * PI / 180.0 ) ; } }
Returns cosine of angle in degrees - quickly return exact values for 0/90/180/270
Returns cosine of angle in degrees - quickly return exact values for 0 / 90 / 180 / 270