The header file graphics.h contains
getarccoords() function which is used to get coordinates of arc which is drawn most recently.
arccoordstype is a predefined structure which is defined as follows:
Syntax :
struct arccoordstype
{
// center point of arc
int x, y;
// start position
int xstart, ystart;
// end position
int xend, yend;
};
Note : address of a structure variable of type arccoordstype is passed to function getarccoords.
Syntax :
void getarccoords(struct arccoordstype *var);
Example :
Input : x = 250, y = 200, s_angle = 0 ,
e_angle = 90, radius = 100
Output : 👁 Image
Below is the implementation of getarccoords() function
Output :
👁 Image