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:16:24 EDT (-0400)
  Re: How to store/read the results of rotating a point in space in SDL  
From: nemesis
Date: 31 Oct 2008 11:11:15
Message: <490b2013$1@news.povray.org>
Mike the Elder escreveu:
> 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!
> 

Povray has many handy functions in the standard include files.  They are 
documented too.


Post a reply to this message

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