2010-08-26 57 views
1

我預計(基於直覺,和AffineTransform在Java中實現):在Android中向後矩陣連接?

a.postConcat(b) -> a = a x b 
a.preConcat(b) -> a = b x a 

,但根據Android文檔:

public boolean preConcat (Matrix other) 

Preconcats與指定矩陣的矩陣。 M'= M x其他

public boolean postConcat (Matrix other) 

對指定矩陣的矩陣進行後處理。 M'=其他x M

這似乎倒退給我,我錯過了什麼嗎?

+0

重新格式化的代碼;如果不正確請回復。 – trashgod 2010-08-26 17:08:06

+0

這不就像Python中着名的string.join(iterable)嗎? :) – unwind 2010-08-26 17:09:08

+0

在'AffineTransform'中,'concat()'扮演了你假設的'postConcat()'的角色。 – trashgod 2010-08-26 17:14:00

回答

0

我假設法「後CONCAT」被稱爲是因爲改造,其中基質other介紹,在後進行變換矩陣M代表。