Por que não uma matriz 3x3? Por que tudo está organizado em uma matriz 4x4 exatamente assim? Por que a última linha é preenchida com zeros e um no final? Eu fiz essas perguntas no dia anterior, decidi investigar a questão e contar o que descobri.
No artigo, estaremos interessados apenas em transformações afins, e em particular rotação, escala e movimento, que são ativamente usados na programação gráfica e no desenvolvimento de jogos em geral.
: . , , , (A⋅x). , , , (+b).
T, x
, b x . x x', :
x ( ), b ( ).
, , . M, :
x' = 3x + 4 (3x +4 ) .
, ( 3x [3]), (x+4) , M x.
:
+4 +4y, y, x ,
2x2, x' = 3x+4 x, . . , .
2x2 , , - y, +4y , +4, x :
, , , , 3x+4 x' - y' y' ,
. : y' = 1 = 0 ⋅ x + 1 ⋅ 1
, x , .
(a), (b) (0 1) y' 1, x' , .
,
, , - z, y .
22 . b .
x' y' , , z' 1 .
, () , () :
:
Computing 2D affine transformations using only matrix multiplication
Brilliant. Linear Transformations
Explaining Homogeneous Coordinates & Projective Geometry
-
Can non-linear transformations be represented as Transformation Matrices?
Linear transformations and matrices | Essence of linear algebra, chapter 3