logo

회전변환 📂行列代数

회전변환

2次元

2次元平面 R2\mathbb{R}^{2}ベクトルを反時計方向に θ\thetaだけ回転させる変換は次の通りだ。

(xy)=(cosθsinθsinθcosθ)(xy) \begin{pmatrix} x^{\prime} \\ y^{\prime} \end{pmatrix} = \begin{pmatrix} \cos \theta & -\sin \theta \\ \sin \theta & \cos \theta \end{pmatrix} \begin{pmatrix} x \\ y \end{pmatrix}

誘導

x=rcosϕx = r \cos \phiy=rsinϕy = r \sin \phiとする。(x,y)(x^{\prime}, y^{\prime})を点 (x,y)(x, y)θ\thetaだけ回転させたときの点とする。三角関数の加法定理により x,yx^{\prime}, y^{\prime}はそれぞれ次の通りだ。

x=rcos(ϕ+θ)=rcosϕcosθrsinϕsinθ=xcosθysinθ \begin{align*} x^{\prime} &= r \cos(\phi + \theta) \\ &= r\cos\phi \cos\theta - r\sin\phi \sin\theta \\ &= x \cos\theta - y \sin\theta \\ \end{align*}

y=rsin(ϕ+θ)=rsinϕcosθ+rcosϕsinθ=ycosθ+xsinθ=xsinθ+ycosθ \begin{align*} y^{\prime} &= r \sin(\phi + \theta) \\ &= r\sin\phi \cos\theta + r\cos\phi \sin\theta \\ &= y \cos\theta + x \sin\theta \\ &= x \sin\theta + y \cos\theta \end{align*}

行列で表すと次の通りだ。

(xy)=(cosθsinθsinθcosθ)(xy) \begin{pmatrix} x^{\prime} \\ y^{\prime} \end{pmatrix} = \begin{pmatrix} \cos \theta & -\sin \theta \\ \sin \theta & \cos \theta \end{pmatrix} \begin{pmatrix} x \\ y \end{pmatrix}