平面坐标系变换
flyfish
x
′
=
x
cos
θ
+
y
sin
θ
x' = x \cos \theta + y \sin \theta
x′=xcosθ+ysinθ
y
′
=
−
x
sin
θ
+
y
cos
θ
y' = - x \sin \theta + y \cos \theta
y′=−xsinθ+ycosθ
矩阵形式
(
x
′
y
′
)
=
(
cos
θ
sin
θ
−
sin
θ
cos
θ
)
(
x
y
)
\begin{pmatrix} x' \\ y' \end{pmatrix} = \begin{pmatrix} \cos \theta & \sin \theta \\ - \sin \theta & \cos \theta \end{pmatrix} \begin{pmatrix} x \\ y \end{pmatrix}
(x′y′)=(cosθ−sinθsinθcosθ)(xy)
另一种形式
x
=
x
′
cos
θ
−
y
′
sin
θ
x = x' \cos \theta - y' \sin \theta
x=x′cosθ−y′sinθ
y
=
x
′
sin
θ
+
y
′
cos
θ
y = x' \sin \theta + y' \cos \theta
y=x′sinθ+y′cosθ
矩阵形式
(
x
y
)
=
(
cos
θ
−
sin
θ
sin
θ
cos
θ
)
(
x
′
y
′
)
.
\begin{pmatrix} x \\ y \end{pmatrix} = \begin{pmatrix} \cos \theta & - \sin \theta \\ \sin \theta & \cos \theta \end{pmatrix} \begin{pmatrix} x' \\ y' \end{pmatrix}.
(xy)=(cosθsinθ−sinθcosθ)(x′y′).