|
|
TonyB wrote:
>
> Check this out! Thanks to Samuel's explanation, I have managed to blob
> torii. This is pretty cool stuff. I have also tried it with superellipsoids
> and it works out quite well. I still have no idea what I could use this new
> skill for, but at least I know I can do it. I just wish I knew how to rotate
> a function. I figured out translate and scale, though. Those were easy.
> Anyway, enjoy.
>
> [Image]
For a rotation around the z axis by angle a:
x <- x*cos(a) + y*sin(a)
y <- -x*sin(a) + y*cos(a)
("<-" meaning "replace")
Jerome
PS: this is assuming the POV coordinate system, for standard
coordinates, replace a by -a...
--
*******************************
* they'll tell you what can't * mailto:ber### [at] inamecom
* be done and why... * http://www.enst.fr/~jberger
* Then do it. *
*******************************
Post a reply to this message
|
|