POV-Ray : Newsgroups : povray.binaries.images : vrotate example from p.general : Re: vrotate example from p.general Server Time
29 Jul 2024 22:23:29 EDT (-0400)
  Re: vrotate example from p.general  
From: Christian Froeschlin
Date: 16 Aug 2013 21:26:51
Message: <520ed15b$1@news.povray.org>
Anthony D. Baye wrote:

> so what vrotate(A,B) does is apply a pre-translation rotation to the object, so
> that when it is translated to A and then rotated by B, it is still in the same
> orientation it had at the origin.

I think you are still a bit confused about this issue. Despite its name,
vrotate will NOT rotate an object at all. It is simply a vector function
that returns three value (the coordinates of point A rotated around the
axis defined by B). What you do with these 3 values is entirely up to
you, you can interpret them as color, point, direction or lottery
numbers. If you write

   translate vrotate(A,B)

you interpret the resulting 3 values as a vector for translation
of the object. So the only transformation here is a translation and
therefore the orientation of the object remains unchanged.


Post a reply to this message

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