2016-06-08 88 views
0

說的數學我有矩陣什麼是Android的postTranslate

a b c 
d e f 
0 0 1 

如果我這樣做matrix.postTranslate(x,y);數學什麼發生?

+0

的doc說'用指定的翻譯後矩陣。 M'= T(dx,dy)* M' – njzk2

+0

是的,我不知道那是什麼意思:) –

回答

0

從DOC:

Postconcats與指定的翻譯矩陣。 M」 = T(DX,DY)* M

T(dx, dy)translation matrix,所以它看起來像:

1 0 x  a b c 
0 1 y * d e f 
1 1 1  0 0 1 

所以你的情況的結果將是:

a b (c + x) 
d e (f + y) 
a+d b+e (c+f+1)