2D vector graphics Problem

Karl Max karlmax at tiscalinet.it
Sun May 29 13:23:07 EDT 2005


"Scott David Daniels" <Scott.Daniels at Acm.Org> ha scritto nel messaggio 
news:4299eb5d$1 at nntp0.pdx.net...
>>  x = x * cos - y * sin - xRel * cos + yRel * sin + xRel
>>  y = x * sin + y * cos - xRel * sin - yRel * cos + yRel
>>  self.coords = (x,y)
>
> Your equation for y uses the new x, not the old x.

De hi hi ho. I must sleep some more hours at night... ;-)
>Be more free with names.

Well, I often report book formulas, and forget renaming variables to more 
comprehensive language. Thank you for your help.

Max 





More information about the Python-list mailing list