0%

GAMES 101 学习记录

Review of Linear Algebra

叉乘

a×b=Ab=(0zayaza0xayaxa0)(xbybzb)

Transformation

  • Modeling 模型变换
  • Viewing 视图变换

Linear Transformation = Matrices

Scale Matrix

(xy)=(s00s)(xy)

Shear Matrix

(xy)=(1a01)(xy)

Rotation Matrix

(xy)=(cosθsinθsinθcosθ)(xy)

Translation

(xy1)=(10tx01ty001)(xy1)

Affine Transformations

(xy1)=(abtxcdty001)(xy1)

Transformation Cont.

3D Transformations

4×4

3D Rotations

$R{xyz}(\alpha,\beta,\gamma)=R_x(\alpha)R_y(\beta)R{z}(\gamma)$

View Transformation

e

g^

t^

Powered By Valine
v1.5.2