POV-Ray : Newsgroups : povray.advanced-users : difficult questions (for me anyway) : Re: difficult questions (for me anyway) Server Time
30 Jul 2024 10:12:27 EDT (-0400)
  Re: difficult questions (for me anyway)  
From: Chris Huff
Date: 9 Mar 2000 04:54:49
Message: <chrishuff_99-543B15.04563509032000@news.povray.org>
In article <38C729F2.FF588583@faricy.net>, David Fontaine 
<dav### [at] faricynet> wrote:

> cylinder { <0,0,0>,<1,0,0>,n rotate bla*y } //correct?
> then the end point will be <sin(bla),0,cos(bla)>

I prefer:
cylinder { <0,0,0>,<1,0,0>,n rotate bla*y}
The end point will be vrotate(<1,0,0>, bla*y)

Note that your solution should be <sin(degrees(bla)), 0, 
cos(degrees(bla))>, unless you specify your angles in radians. But 
vrotate works for any rotation, instead of just a rotation around an 
axis, so I would recommend you use it. It also makes your code easier to 
figure out when you come back to it after abandoning it for a week.

-- 
Chris Huff
e-mail: chr### [at] yahoocom
Web page: http://chrishuff.dhs.org/


Post a reply to this message

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