/* PROGRAM BY KIRAN */ #include #include #include #include #define pi 3.14 float xa,ya,xb,yb,xc,yc; float xr,yr; int i,j,k,z,t; float a[3][3],c[3][3],o,r; float sx,sy,sum; int s,e; float identity[3][3]; struct GOOD { float x; float y; }pts[50]; main() { int gm=DETECT,gd=DETECT; initgraph(&gm,&gd,"c:\\turboc\\bgi"); clrscr(); cleardevice(); printf("\nEnter the points for rotation : "); scanf("%f%f",&xr,&yr); printf("\nEnter the angle for rotation: "); scanf("%f",&r); printf("\nEnter the sx and sy for scaling :"); scanf("%f%f",&sx,&sy); printf("\nEnter the sides of figure :"); scanf("%d",&s); for(e=1;e<=s;e++) { printf("\nEnter the point of sides one by one :"); scanf("%f%f",&pts[e].x,&pts[e].y); } clrscr(); cleardevice(); for(e=1;e