POV-Ray : Newsgroups : povray.general : How to store/read the results of rotating a point in space in SDL : Re: How to store/read the results of rotating a point in space in SDL Server Time
30 Jul 2024 16:19:02 EDT (-0400)
  Re: How to store/read the results of rotating a point in space in SDL  
From: Mike the Elder
Date: 31 Oct 2008 08:50:00
Message: <web.490afe28ceeff6f3ad9dd8b40@news.povray.org>
Warp <war### [at] tagpovrayorg> wrote:
> Mike the Elder <nomail@nomail> wrote:
> > If the point <0,10,3> is rotated 90 degrees about the y axis, the result is
> > <3,10,0>.
>
> > Now, I can store the value of the starting point like this:
> > #declare POINT1 = <0,10,3>;
>
> > ....and I can use POINT1 as a value for placing objects, but...
>
> > HOW do I code:  #declare POINT2 = ???? //POINT1 rotated in a given way
>
> #declare POINT2 = vrotate(POINT1, y*90);
>
> --
>                                                           - Warp

That's what I kept missing (kept searching docs under "rotate").
Thanks!


Post a reply to this message

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