POV-Ray : Newsgroups : povray.binaries.images : something to share... : Re: something to share... Server Time
2 Oct 2024 06:27:09 EDT (-0400)
  Re: something to share...  
From: Jamie Davison
Date: 6 Jul 2000 19:59:34
Message: <MPG.13cee44d91e1e70989729@news.stmuc.com>
On Wed, 05 Jul 2000 21:20:20 -0500, David Fontaine wrote...
> Jamie Davison wrote:
> 
> > <grin>
> >
> > Oh, and I figured it out using a pencil, paper and calculator, and the
> > rotations I came out with were <45.0,0.0,35.26439>.  This was using
> > nothing more complicated than basic trigonometry and Pythagoras' theorem.
> 
> <grin>
> *cough cough*
> I will not tolerate imperfection! Rotate <45,0,asin(1/sqrt(3))> ;-)

Nope, I came to it through Rotate <45.0, 0.0, atan(1/sqrt(2))>  :)

Or you could have used Rotate <45.0, 0.0, acos(sqrt(2)/sqrt(3))  But 
that's just silly.

They all give you the same result, so who cares <grin>

Using the (admittedly crap) windows calculator, the following came out of 
the two simpler methods:

asin(1/sqrt(3)) = 35.2643896827546543153770003300188
atan(1/sqrt(2)) = 35.2643896827546543153770003300188

Is that perfect enough?  Or do you require anally retentive levels of 
precision?  ;)

Bye for now,
     Jamie.


Post a reply to this message

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