Double X = vec_endPoint_rotate.x (); Double Y = vec_endPoint_rotate.y (); Double DX = vec_center_rotate.x (); Double Dy = vec_center_rotate.y (); // a point (x, y) about an arbitrary point (dx , dy) the coordinates of a rotated clockwise 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;
Point coordinates after a certain angle of rotation about another point
Guess you like
Origin www.cnblogs.com/herd/p/11620760.html
Recommended
Ranking