POV-Ray : Newsgroups : povray.binaries.utilities : Re: Q: Cylinder caculus? : Re: Q: Cylinder caculus? Server Time
8 Jul 2024 18:24:03 EDT (-0400)
  Re: Q: Cylinder caculus?  
From: Greg M  Johnson
Date: 8 Nov 1998 19:44:48
Message: <36463BBA.3216@aol.com>
I have a similar problem.

I want to have an object with its tail at <0,0,0> and its nose at a
given <x,y,z>.  I want to create it colinear with the X axis and simply
rotate it to be colinear with the <x,y,z> vector.

I've stumped myself on the math for this. How do I do this?

I tried with no success

rotate <0,atan2(z,x)/2/pi*360,atan2(y,x)/2/pi*360>

Thanks for any help.


Post a reply to this message

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