{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

22_2DGraphicsIntro.3up

# Swing import javaawtcolor import javaawtgraphics

This preview shows page 1. Sign up to view the full content.

This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ; = # 0 #0&#0 " %# " 0 sy 0 0 \$! x &# 0 &# y & 1 &# 0 %" \$ ! xsx &# & = # ysy &#0 %# " \$ & & & & % 0 \$! x &# 0 &# y & 1 &# 1 %" \$ ! xsx &# & = # ysy &#1 %# " \$ & & & & % •  Points ! x ' \$ ! sx # &# # y' & = # 0 #1&#0 " %# " 0 sy 0 Matrix Composi:on •  Transforma:ons can be combined by matrix mul:plica:on ! x ' \$ ! 1 0 t x \$! cosθ &# # &# # y ' & = # 0 1 t y &# sin θ # 1 & # 0 0 1 &# 0 " %# &" " % p’ = T(tx,ty) − sin θ cosθ 0 0 0 1 \$! sx &# &# 0 &# 0 %# " R(Θ) 0 sy 0 0 \$! x &# 0 &# y & 1 &# 1 %" S(sx,sy) \$ & & & % p 37 Matrix Composi:on   Be aware: order of transforma:ons maners •  Matrix mul:plica:on is not commuta:ve p’ = T * R * S * p “Global” “Local” p’ = (T * (R * (S*p) ) ) p’ = (T*R*S) * p 38 Matri...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online