Hi,
     Yeah, I'm learning more about transforms than I really want to.  Oh well, 
it helps.  Unfortunately, applying a rotate to a transform seems to really 
screw up scaling AND translating.  Looking at the matrix, it makes sense as to 
why.  If I draw an element to the JSVGCanvas, and want to be able to move, 
scale, and rotate it without one operation hosing up another, how do I achieve 
this?  I had scaling and translating down pat, but rotation breaks everything.
 
Michael Bishop

________________________________

From: Tonny Kohar [mailto:[EMAIL PROTECTED]
Sent: Thu 12/8/2005 8:08 PM
To: [email protected]
Subject: RE: Scaling around a center point...



Hi,

On Thu, 2005-12-08 at 10:53 -0500, Bishop, Michael W. CONTR J9C880
wrote:

> transform="translate(x, y) scale(x, y) rotate(t)"
>
> Is there a way to get the value of t?

the value of T will be cos(t) from transform matrix element 0,0

- rotate(t)
[   cos(theta)    -sin(theta)    0   ]
[   sin(theta)     cos(theta)    0   ]
[       0              0         1   ]

- rotate(t,x,y)
[   cos(theta)    -sin(theta)    x-x*cos+y*sin  ]
[   sin(theta)     cos(theta)    y-x*sin-y*cos  ]
[       0              0               1        ]

from AffineTransform Java API doc

Regards
Tonny Kohar
--
Sketsa
SVG Graphics Editor
http://www.kiyut.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


<<winmail.dat>>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to