POV-Ray : Newsgroups : povray.newusers : vector math : Re: vector math Server Time
31 Jul 2024 00:22:10 EDT (-0400)
  Re: vector math  
From: Christoph Hormann
Date: 7 Apr 2003 07:18:18
Message: <3E915E7A.593BA21@gmx.de>
Alan Walkington wrote:
> 
> Among the many thousands of things about povray that I don't seem to
> understand appears to be use of the vector macros.
> 
> I want to create a cylinder along the x-axis with one end at 0,0.
> move it to <location>,  pointed at <lookat>.
> 
> [...]

You need to do a Reorient_Trans() with 'x' and '<lookat>-<location>'  as
parameters and then translate the object to <location>.

Christoph

-- 
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 28 Feb. 2003 _____./\/^>_*_<^\/\.______


Post a reply to this message

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