POV-Ray : Newsgroups : povray.general : Rotating rotations : Re: Rotating rotations Server Time
5 Nov 2024 07:15:33 EST (-0500)
  Re: Rotating rotations  
From: Christopher James Huff
Date: 4 Jun 2003 17:54:37
Message: <cjameshuff-654FD6.16472304062003@netplex.aussie.org>
In article <web.3ede25019f43bda8499ab770@news.povray.org>,
 "neb" <neb### [at] qismorg> wrote:

> Ok, the real probelm:  You take an object and you rotate it <a,b,c>. Then
> you rotate the entire thing by <x,y,z>. I need this to be expressed in a
> single rotate, but I know its not <a+x,b+y,c+z>. What is it then?

Why do you need a single rotation? If you just need a single value to 
pass around, do something like this:

#declare Rotations = transform {rotate <a,b,c> rotate <x,y,z>}

object {MyObject
    transform Rotations
}

If you're after a way to transform vectors, make sure you include 
transforms.inc and use "vtransform(Point, Rotations)".

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.