my test site
Open main menu
Learning
Course 2
Computer Graphics
Rotation
Rotation
#Computer_Graphics
Look at the origin of the coordinate system such that the axis of rotation points toward you. If the rotation is CWW (counter-clockwise), the rotation angle is positive, if the rotation is CW (clockwise), it is negative.
R
y
(
−
90
∘
)
=
(
cos
(
−
90
∘
)
0
sin
(
−
90
∘
)
0
0
1
0
0
−
sin
(
−
90
∘
)
0
cos
(
−
90
∘
)
0
0
0
0
1
)
=
(
cos
270
∘
0
sin
270
∘
0
0
1
0
0
−
sin
270
∘
0
cos
270
∘
0
0
0
0
1
)
=
(
0
0
−
1
0
0
1
0
0
1
0
0
0
0
0
0
1
)
\begin{aligned} & R_y\left(-90^{\circ}\right)=\left(\begin{array}{cccc} \cos \left(-90^{\circ}\right) & 0 & \sin \left(-90^{\circ}\right) & 0 \\ 0 & 1 & 0 & 0 \\ -\sin \left(-90^{\circ}\right) & 0 & \cos \left(-90^{\circ}\right) & 0 \\ 0 & 0 & 0 & 1 \end{array}\right) \\ & =\left(\begin{array}{cccc} \cos 270^{\circ} & 0 & \sin 270^{\circ} & 0 \\ 0 & 1 & 0 & 0 \\ -\sin 270^{\circ} & 0 & \cos 270^{\circ} & 0 \\ 0 & 0 & 0 & 1 \end{array}\right) \\ & =\left(\begin{array}{cccc} 0 & 0 & -1 & 0 \\ 0 & 1 & 0 & 0 \\ 1 & 0 & 0 & 0 \\ 0 & 0 & 0 & 1 \end{array}\right) \\ & \end{aligned}
R
y
(
−
9
0
∘
)
=
cos
(
−
9
0
∘
)
0
−
sin
(
−
9
0
∘
)
0
0
1
0
0
sin
(
−
9
0
∘
)
0
cos
(
−
9
0
∘
)
0
0
0
0
1
=
cos
27
0
∘
0
−
sin
27
0
∘
0
0
1
0
0
sin
27
0
∘
0
cos
27
0
∘
0
0
0
0
1
=
0
0
1
0
0
1
0
0
−
1
0
0
0
0
0
0
1
Built with
Flowershow