POV-Ray : Newsgroups : povray.general : Rotation angle of a vector around z axis : Re: Rotation angle of a vector around z axis Server Time
30 Jul 2024 00:18:54 EDT (-0400)
  Re: Rotation angle of a vector around z axis  
From: Slime
Date: 27 Mar 2010 21:13:43
Message: <4baead47$1@news.povray.org>
> depending on the quadrant where the vector is the box will point the wrong 
> way.
> Couldn't figure out an easy solution for this. Any ideas? Thanks again!

The expression I gave you gives the angle of the vector from the positive X 
direction, whereas I think you're looking for the angle from the Y 
direction. You could fix this by first rotating the box 90 degrees to the 
right to line it up with the X direction.


 - Slime
 [ http://www.slimeland.com/ ]


Post a reply to this message

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