Re: 2D vector graphics Problem
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Re: 2D vector graphics Problem

From: Karl Max <karlmax@tiscalinet.it>
Date: Sun May 29 2005 - 19:23:07 CEST

"Scott David Daniels" <Scott.Daniels@Acm.Org> ha scritto nel messaggio
news:4299eb5d$1@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
Received on Thu Sep 29 16:16:02 2005