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
這似乎倒退給我,我錯過了什麼嗎?
重新格式化的代碼;如果不正確請回復。 – trashgod 2010-08-26 17:08:06
這不就像Python中着名的string.join(iterable)嗎? :) – unwind 2010-08-26 17:09:08
在'AffineTransform'中,'concat()'扮演了你假設的'postConcat()'的角色。 – trashgod 2010-08-26 17:14:00