2010-08-26 3 views
1

je me attendrais (basé sur l'intuition, et la mise en œuvre de AffineTransform en Java):La concaténation matricielle est-elle inversée dans Android?

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

mais selon la documentation Android:

public boolean preConcat (Matrix other) 

Preconcats la matrice avec la matrice spécifiée. M '= M x autre

public boolean postConcat (Matrix other) 

Postconcats la matrice avec la matrice spécifiée. M '= autre x M

Cela me semble aller vers l'arrière, est-ce que quelque chose me manque?

+0

Code reformaté; s'il vous plaît revenir si incorrect. – trashgod

+0

N'est-ce pas le fameux (in) string.join (iterable) en Python? :) – unwind

+0

Dans 'AffineTransform',' concat() 'joue le rôle de votre hypothétique' postConcat() '. – trashgod

Répondre

0

Je suppose que la méthode « concat post » est appelé ainsi parce que la transformation, que la matrice other décrit, est réalisée après la matrice de transformation M signifie.