int angle_rad=angle*PI/180;
Your radians are being stored in an integer, so they will get truncated to the nearest whole number. Store them in a float or a double instead.
CLICK HERE to find out more related problems solutions.
int angle_rad=angle*PI/180;
Your radians are being stored in an integer, so they will get truncated to the nearest whole number. Store them in a float or a double instead.
CLICK HERE to find out more related problems solutions.