|
From: | Adam Fedor |
Subject: | Re: FW: [Fwd: Bug in NSAffineTransform] |
Date: | Fri, 24 Feb 2006 21:54:16 -0700 |
The matrix multiplication is not commutative and the last line should beinstead matrix = matrix_multiply(matrix, tranm);
Do you have a test that shows this is wrong? All my tests work with the current version (as well as give the same result as Mac OSX).
I prefer the old version though: - (void) translateXBy: (float)tranX yBy: (float)tranY { TX += tranX; TY += tranY; } it's clearer and faster.
But incorrect. Remember we are translating a coordinate system, not a point.
[Prev in Thread] | Current Thread | [Next in Thread] |