On Wed, 12 Oct 2005, Alexandre Quessy wrote:
Why do you need [sin] and [cos] instead of [rotate] ?
Well, depends if I can change the center of rotation of a geo.
conjugate it by a translation.
conjugating means you do one operation just before and the opposite one just after.
e.g.:
| [translateXYZ -4 6 -2] forward translation | [rotateXYZ 0 0 0.523598] rotation | [translateXYZ 4 -6 2] backward translation |
warning: Pd sees +2 as a symbol and not a float, so if you write a positive number you must not type its sign.
Also note that in this particular case, the Z component of the translation has no effect (and could be anything as long as the two values are opposed), because the rotation has fixed points which are exactly the Z axis.
Mathieu Bouchard - tél:+1.514.383.3801 - http://artengine.ca/matju Freelance Digital Arts Engineer, Montréal QC Canada