POV-Ray : Newsgroups : povray.advanced-users : Get rotation angles from vector Server Time
22 Dec 2024 09:56:12 EST (-0500)
  Get rotation angles from vector (Message 1 to 2 of 2)  
From: Mike Horvath
Subject: Get rotation angles from vector
Date: 1 Mar 2016 05:20:22
Message: <56d56ce6$1@news.povray.org>
Let's say I have some vector, vnormalize(<-1500, 4000,-3000>).

How do I get the rotation angles to achieve the same vector, starting 
with a point , < 0, 0, -1>?

Thanks!


Mike


Post a reply to this message

From: Mike Horvath
Subject: Re: Get rotation angles from vector
Date: 1 Mar 2016 06:01:16
Message: <56d5767c$1@news.povray.org>
On 3/1/2016 5:20 AM, Mike Horvath wrote:
> Let's say I have some vector, vnormalize(<-1500, 4000,-3000>).
>
> How do I get the rotation angles to achieve the same vector, starting
> with a point , < 0, 0, -1>?
>
> Thanks!
>
>
> Mike

Never mind. I have some code lying around from a previous project that 
does the job.


Mike


Post a reply to this message

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