以原点为中心逆时针旋转角度(theta)
x'=rcos(HLdtd )=rcoscosrsInsIn ) n=xcosysIny )=rsIn ) (HLdtd ) ) ) ) ) ) ) ) 65 ) 65 ) n ) Thetasin ) Phi=xcos ) Thetasin ) Theta y'=rsin(Theta(Phi ) ) rsin(Thetacos ) Phircos ) theta )=rcoscosrsinsin=xcosysiny )=rsin ))=rsincosrcossin=xsinycosdet ) a )=1det ) a )
a=[ cossinsincos] a=begin { b matrix } costheta-sinthetasinthe tacos thetaend { b matrix }
x1=[0; 0 ); x2=[1; 0 ); x3=[1; 1 ); x4=[0; 1 ); x=[x1,x2,x3,x4,x1]; A=[0.866 -0.5; 0.5 0.866]; y=A * x; plot (x (1, ),x ) 2, ),' b ' ) holdonplot ) y ) 1, ),y ) 2, ),' r ' ) axis(-1.5 ) 1