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:17:14 EDT (-0400)
  Re: How to store/read the results of rotating a point in space in SDL  
From: Warp
Date: 31 Oct 2008 08:36:35
Message: <490afbd3@news.povray.org>
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


Post a reply to this message

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