Graphics Reference
In-Depth Information
t
21
=−
cos yaw sinroll
+
sinyaw sinpitch cos roll
t
22
=
cos pitch cos roll
t
23
=
sinyaw sinroll
+
cos yaw sinpitch cos roll
t
31
=
sinyaw cos pitch
t
32
=−
sinpitch
t
33
=
cos yaw cos pitch
Figure 9.5 shows four views of a cube using the above equations: (a) shows the normal perspective
projection; (b) shows the projection plane with a horizontal yaw of 10
; (c) shows the projection
plane with a pitch of 10
; and (d) shows the projection plane subjected to a roll, pitch and yaw
of 10
. Note, also, that the x coordinate has been reversed, to compensate for the reversal that
occurs when the image is displayed with the x-axis pointing to the right.
4
3
2
2
1
-3
-2
-1
1
2
3
-3
-2
-1
1
2
3
4
-1
-2
-2
-3
-4
(a)
(b)
4
3
2
2
1
-3
-2
-1
1
2
3
-4
-2
2
4
-1
-2
-2
-3
(c)
(d)
Figure 9.5.