[Webkit-unassigned] [Bug 16062] SVGMatrix multiply method is wrong way around

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Nov 3 22:20:16 PST 2009


https://bugs.webkit.org/show_bug.cgi?id=16062


Brendan Kenny <bckenny at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bckenny at gmail.com




--- Comment #12 from Brendan Kenny <bckenny at gmail.com>  2009-11-03 22:20:15 PDT ---
That's the expected behavior from the "multiply method is wrong way around."
Your first matrix (A) is a translation by 100 in x. The second (B) is a scale
by a factor of 2 in x. In this case, B is applied in the global coordinates, so
a space already translated by 100 in x gets scaled, translating to 200.

You are trying to multiply on the right (A*B), but since WebKit stores matrices
as the transpose of what you have written there, a multiply of a transpose by a
transpose on the right (A^T*B^T) is equivalent to a multiply on the left of the
matrices you have written there (B*A).

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list