POV-Ray : Newsgroups : povray.binaries.images : vrotate example from p.general : Re: vrotate example from p.general Server Time
29 Jul 2024 22:33:32 EDT (-0400)
  Re: vrotate example from p.general  
From: Bald Eagle
Date: 16 Aug 2013 20:35:01
Message: <web.520ec510286ea79673fc9ebb0@news.povray.org>
> The effect is much simpler: when you do
>
> translate vrotate(A, B)
>
> vrotate calculates where A will end up after being rotated around the origin by
> B.  It returns a vector which is then passed to translate.  So the effect is as
> if you had simply translated the object from the origin to the new point.


Right.  I made some annotations in my SDL code, and tried to show with the blue
line that that's exactly what it does.

I wouldn't say that the documentation is "clear", although it does say exactly
what vrotate() does.  It just takes reading it 3 or 4 times to get it.
I hate that an <x,y,z> coordinate is referred to as a "vector".

To me, vector is a magnitude with a direction.  I suppose if you're looking at
it from the perspective of moving _from_ the origin to that point, then yes, but
in my mind, it's JUST a point.

And the direction of a vector is actually important when using something like
trace(), which I learned when trying to understand THAT command...


Post a reply to this message

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