POV-Ray : Newsgroups : povray.general : Calculating rotation angle : Re: Calculating rotation angle Server Time
8 Aug 2024 01:17:46 EDT (-0400)
  Re: Calculating rotation angle  
From: Ron Parker
Date: 6 Apr 2001 16:40:20
Message: <slrn9csac1.12m.ron.parker@fwi.com>
On Fri, 6 Apr 2001 16:20:26 -0400, MPunk3 wrote:
>Let's say I have an imaginary line extending up 14 units from the origin and
>another line at a right angle going out 15.65 units from the origin.
>
>How do I calculate the angle of the line which connects those endpoints?

atan2(14,15.65) = 41.814818635216882095569966797115 degrees.  More or less.

You didn't fully specify the problem, though.  That result is for the 
smallest of the three angles in the triangle.  The other angle is the
complement of that.

-- 
Ron Parker   http://www2.fwi.com/~parkerr/traces.html
My opinions.  Mine.  Not anyone else's.


Post a reply to this message

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