POV-Ray : Newsgroups : povray.advanced-users : Get Euler angles from unit vector? : Re: Get Euler angles from unit vector? Server Time
25 Apr 2024 07:26:31 EDT (-0400)
  Re: Get Euler angles from unit vector?  
From: Le Forgeron
Date: 22 Sep 2018 10:25:46
Message: <5ba650ea$1@news.povray.org>
Le 22/09/2018 à 14:32, clipka a écrit :
> Am 22.09.2018 um 13:49 schrieb Mike Horvath:
>> Is it possible to extract the Euler rotation amounts from a unit vector?
>> Is there a command that does this? Thanks.
> 
> A unit vector by itself is not enough to fully specify a free rotation
> in 3D space; you need two vectors for that.
> 
> Most notably, a single unit vector representation would allow for
> arbitrary rotations around the direction of that vector.
> 
I think he wanted something along Reorient_Trans(Axis1, Axis2) (from
transform.inc) with Axis1 = x and Axis2 his unit vector.

But expressing the transformation as the Euler angles.

Yet, as spotted, a second vector (perpendicular) is needed for complete
non-ambiguous computation.

x,y --> v1,v2


Post a reply to this message

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