#include #include #define M_PI 3.141592653589793238462 typedef struct { float x,y; float an; } POINT; POINT pts[10000]; int ptc; int cmc; void rotate(int d, float an) { int i; float matrix[2][2]; float x, y; float nx, ny; float an2; float c; float s; an2 = an-pts[d].an; c = cos(an2); s = sin(an2); for (i=d; i