>>390
double* rotation(int degree, double x[]){
double *y, theta;

y=calloc(sizeof(double),2);
theta=M_PI*degree/180;
y[0]=x[0]*cos(theta)-x[1]*sin(theta);
y[1]=x[0]*sin(theta)+x[1]*cos(theta);
return y;
}