From 14a7e6d89bfe9aa9853fc927fea3673ba343ae3c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20Wobst?= Date: Wed, 16 Oct 2002 14:49:18 +0000 Subject: [PATCH] fix transformation transpose bug git-svn-id: https://pyx.svn.sourceforge.net/svnroot/pyx/trunk/pyx@527 069f4177-920e-0410-937b-c2a4a81bcd90 --- pyx/trafo.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pyx/trafo.py b/pyx/trafo.py index d40dcda1..10dc5e32 100755 --- a/pyx/trafo.py +++ b/pyx/trafo.py @@ -32,8 +32,8 @@ import base, bbox, unit def _rmatrix(angle): phi = math.pi*angle/180.0 - return (( math.cos(phi), math.sin(phi)), - (-math.sin(phi), math.cos(phi))) + return ((math.cos(phi), -math.sin(phi)), + (math.sin(phi), math.cos(phi))) def _rvector(angle, x, y): phi = math.pi*angle/180.0 @@ -90,9 +90,9 @@ class _trafo(base.PSOp): ) vector = ( self.matrix[0][0]*other.vector[0] + - self.matrix[1][0]*other.vector[1] + + self.matrix[0][1]*other.vector[1] + self.vector[0], - self.matrix[0][1]*other.vector[0] + + self.matrix[1][0]*other.vector[0] + self.matrix[1][1]*other.vector[1] + self.vector[1] ) @@ -118,9 +118,9 @@ class _trafo(base.PSOp): def _apply(self, x, y): """apply transformation to point (x,y) (coordinates in pts)""" return (self.matrix[0][0]*x + - self.matrix[1][0]*y + + self.matrix[0][1]*y + self.vector[0], - self.matrix[0][1]*x + + self.matrix[1][0]*x + self.matrix[1][1]*y + self.vector[1]) -- 2.11.4.GIT