2010-08-26 62 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代表。