一个点绕着另一个点旋转一定角度后的坐标
double x = vec_endPoint_rotate.x(); double y = vec_endPoint_rotate.y(); double dx = vec_center_rotate.x(); double dy = vec_center_rotate.y(); //一个点(x,y)绕任意点(dx,dy)顺时针旋转a度后的坐标 double xx = (x - dx)*cos(angleParam* VC_PI / 180) - (y - dy)*sin(angleParam* VC_PI / 180) + dx; double yy = (x - dx)*sin(angleParam* VC_PI / 180) + (y - dy)*cos(angleParam* VC_PI / 180) + dy;
QQ 3087438119