회전변환
📂Matrix Algebra회전변환
2D
In a two-dimensional plane R2, the transformation that rotates a vector counterclockwise by θ is as follows.
(x′y′)=(cosθsinθ−sinθcosθ)(xy)
Derivation
Let x=rcosϕ and y=rsinϕ. Define (x′,y′) as the point where the point (x,y) is rotated by θ. According to the addition formulas for trigonometric functions, x′,y′ are as follows, respectively.
x′=rcos(ϕ+θ)=rcosϕcosθ−rsinϕsinθ=xcosθ−ysinθ
y′=rsin(ϕ+θ)=rsinϕcosθ+rcosϕsinθ=ycosθ+xsinθ=xsinθ+ycosθ
Expressed in matrix form, it is as follows.
(x′y′)=(cosθsinθ−sinθcosθ)(xy)
■