POV-Ray : Newsgroups : povray.newusers : VAngleD(V1, V2) : Re: VAngleD(V1, V2) Server Time
4 Sep 2024 22:13:52 EDT (-0400)
  Re: VAngleD(V1, V2)  
From: Christopher James Huff
Date: 16 Jul 2002 12:33:47
Message: <chrishuff-247B04.11283116072002@netplex.aussie.org>
In article <3d335e4a@news.povray.org>,
 "Tim McMurdo" <tmc### [at] prodigynet> wrote:

> Then I need to determine the angle on this axis that would point from
> <X4,Y4,Z4> to  <-15000,75,2435> using:
> 
> #declare Angle = VAngleD(<X4,Y4,Z4>, <-15000,75,2435>)

The VAngle() macros give the postive angle between the two vectors, not 
the rotation from one two the other. You may need to reverse the sign of 
Angle, or use the VRotation() macros.


> I tried
> 
> VRotation(<X4,Y4,Z4>, <-15000,75,2435>, Axis)
> 
> but still I don't get the expected results

VRotation() gives results in radians, VRotationD() in degrees.

-- 
Christopher James Huff <chr### [at] maccom>
POV-Ray TAG e-mail: chr### [at] tagpovrayorg
TAG web site: http://tag.povray.org/


Post a reply to this message

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